You can configure a gradient color picker with one or more colors.
Configuration description
Field | Description | Data type | Required? | Remarks |
---|---|---|---|---|
name |
The name of the control. | string | Yes | None. |
type |
The type of the control. | string | Yes | None. |
default |
The default value. | object | Yes | You must configure the following fields:
|
Value description
Condition | Data type | Example | Default value |
---|---|---|---|
The style field is set to single . |
object |
|
|
The style field is set to double . |
object |
|
|
Configuration examples
"color": {
"name": "Gradient Color",
"type": "multicolor",
"default": {
"style": "double",
"from": "#000",
"to": "#fff",
"angle": 0
}
}