Label

Label tag represents a single label

Parameters

Param Type Default Description
value string value of the label
[selected] boolean false if this label should be preselected
[maxUsages] number maximum available usages
[hotkey] string hotkey, if not specified then will be automatically generated
[alias] string label alias
[showAlias] boolean false show alias inside label text
[aliasStyle] string "opacity:0.6" alias CSS style
[size] string "medium" size of text in the label
[background] string background color of an active label
[selectedColor] string color of text in an active label
[granularity] symbol | word control per symbol or word selection (only for Text)

Example

<View>
  <Labels name="type" toName="txt-1">
    <Label alias="B" value="Brand" />
    <Label alias="P" value="Product" />
  </Labels>
  <Text name="txt-1" value="$text" />
</View>