Skip to main content
Version: 4.2 (beta)

Button State

Specifies the button's behavior responding to specific datapoint states values.

Attributes​

Datapoint​

Value​

The value of the datapoint that identifies the state.

Attribute Values​
ValueDescription
<string>The value.

Style​

Color​

Specifies the button color.

Attribute Values​
ValueDescription
defaultDefault value. Default color.
primaryPrimary color, used to highlight action buttons.
warningWarning color, used to highlight warning buttons.
successSuccess color, used to highlight success buttons.
errorError color, used to highlight error buttons.
lightLight color.
darkDark color.
red,blue,yellow,green,yellow,purple,orange,greenPalette colors.
customCustom color, defined in the "Custom Color" attribute.

The default value is: default.

Custom Color​

Specifies the button's custom color.

Attribute Values​
ValueDescription
<html color>Any valid HTML color.

This attribute is available when style is "custom" or style is "glass" or color is "custom".

Look​

Specifies the button's look.

Attribute Values​
ValueDescription
filledDefault value. Filled look, with a solid background.
clearClear look, no background or border.
outlinedOutlined look, with a solid border.
glassGlass look, with a semi-transparent background.

The default value is: filled.

Label​

Description​

Specifies a description displayed below the label.

Attribute Values​
ValueDescription
<string>Button's description.

This attribute is available when owner's displaystateindescription is not "false".

Tooltip​

A text displayed when hovering over the object, commonly used to display additional information.

Attribute Values​
ValueDescriptionExample
<string>Text to be displayed.Set phasers to stun

Icon​

Icon​

Specifies the icon source to display. Its position is set with the "Icon Position" attribute.

The value can be:

  • An icon prefixed with icon:
  • A relative path to an image file, such as lights/lamp.png, resolved from the standard image folders
Attribute Values​
ValueDescriptionExample
<icon>Icon prefixed with icon:.icon:mdi#account-multiple
<image>Relative path to the image file.lights/lamp.png

Icon Color​

Specifies the icon's color.

Attribute Values​
ValueDescriptionExample
<html color>Color in any html accepted format.#ff0000

Label​

Font Family​

Specifies the font family.

The default value is: default.

Font Size​

Specifies the font size in pixels or percentage (relative to the project's font size).

Attribute Values​
ValueDescriptionExample
<integer>Font size in pixels.
<percentage>%Relative font size in percentage.90%

The default value is: 14.

Font Color​

Specifies the text CSS color.

Attribute Values​
ValueDescriptionExample
<html color>Color in any html accepted format.#ff0000

Font Weight​

Specifies the weight of the font.

Attribute Values​
ValueDescription
normalDefault value. Normal.
boldBold.
bolderBolder.
lighterLighter.

The default value is: normal.

Italic​

Show the text in italics.

Attribute Values​
ValueDescription
falseDefault value. Normal.
trueItalics.

The default value is: false.

Decoration​

Specifies the text decoration.

Attribute Values​
ValueDescription
noneDefault value. No decoration.
underlineUnderline.
overlineOverline.
line-throughLine through.

The default value is: none.

View​

Blinks the object at the specified speed.

Attribute Values​
ValueDescription
falseDefault value. Not blinking.
slowBlinks slowly.
fastBlinks fast.

The default value is: false.