You can configure a drop-down search box. However, we recommend that you use a selector instead (set the type field to select).

Configuration description

FieldDescriptionData typeRequired?Remarks
nameThe name of the control.stringNoNone.
typeThe type of the control.stringYesNone.
defaultThe default value.stringNoIf this field is not specified, the default value is the first item in the range field.
rangeThe value range.arrayNoThe value range format can be [{name: "" ,value: ""}], [{key: value}], or [value]. If this field is not specified, the control type changes to text.

Value description

ConditionData typeExampleDefault value
Nonestring"Microsoft Yahei"""

Configuration examples

Configuration example of a drop-down search box
"search": {
    "name": "Font",
    "type": "search",
    "default": "Microsoft Yahei",
    "range": [
      {
        "Microsoft Yahei": "Microsoft Yahei"
      },
      {
        "SimSun": "SimSun"
      },
      "tahoma",
      "arial",
      "sans-serif"
    ]
}