Icon

Icon
Icon

Icon to be applied at dashboard for widgets and UI elements.

JSON Example
{
    "color": "string",
    "placement": "string",
    "size": "number",
    "size_unit": "string",
    "tooltip": [
        {
            "condition": "string",
            "heading": false,
            "text": "string"
        }
    ],
    "type": "string"
}
string
color
Optional

Icon color applied to icon in hex format.

string
placement
Optional
Constraints: default: PRE

If specified as PRE, the icon appears before the UI element. If set as POST, the icon appears after the UI element.

Possible values are : PRE, POST,
number
size
Optional
Constraints: minimum: 1

Icon size in unit applied to icon.A unit can be specified by the 'size_unit' property.

string
size_unit
Optional

Icon size unit applied to icon along with size. if 'size' property value is provided and no value is provided for this property then default value for this proerty is set to 'px'.

Possible values are : px, rem, pc,
array of Tooltip
tooltip
Optional

Multi-line text to be shown on tooltip while hovering over the icon.

string
type
Optional

Icon will be rendered based on its type. For example, if ERROR is chosen, then icon representing error will be rendered. or else custom svg icon name can be given.