All Products
Search
Document Center

DataV:imageSelect

Last Updated:Apr 17, 2024

You can configure an image selector.

Description

ParameterDescriptionType RequiredDescription
nameThe name of the control.stringYesIf this parameter is not specified, the key name is used as the display name, for example, margin.
typeThe property type. Valid values:stringYesNo default value
defaultDefault valuestringNoThe dimension.
optionsOptionsarrayNoAn array of objects containing label, value, and src fields. The label is the display text, the value is the text value, and the src is the image address or icon name.

Values

ConditionData typeExamplesDefault value
N/Astring"left"""

Configuration example

imageSelect配置示例
"bubbleKey": {
    "name": "Bubble Type",
    "type": "imageSelect",
    "default": "type1",
    "options": [
      {
        "label": "Type 1",
        "value": "type1",
        "src": "https://img.alicdn.com/tfs/TB1BCgwoAT2gK0jSZFkXXcIQFXa-162-104.png"
      },
      {
        "label": "Type 2",
        "value": "type2",
        "src": "https://img.alicdn.com/tfs/TB1EmgwoAT2gK0jSZFkXXcIQFXa-162-104.png"
      },
      {
        "label": "Type 3",
        "value": "type3",
        "src": "https://img.alicdn.com/tfs/TB13x3soAP2gK0jSZPxXXacQpXa-162-104.png"
      },
      {
        "label": "Type 4",
        "value": "type4",
        "src": "https://img.alicdn.com/tfs/TB1pKUuoAL0gK0jSZFxXXXWHVXa-162-104.png"
      }
    ]
  }