-
Guide
Tags
API
What's new
tags
- Introduction
Objects
- Audio
- AudioPlus
- HyperText
- Image
- Paragraphs
- Text
- TimeSeries
Controls
- BrushLabels
- Choice
- Choices
- Ellipse
- EllipseLabels
- HyperTextLabels
- KeyPoint
- KeyPointLabels
- Label
- Labels
- List
- Pairwise
- ParagraphLabels
- Polygon
- PolygonLabels
- Ranker
- Rating
- Rectangle
- RectangleLabels
- Relation
- Relations
- Shortcut
- TextArea
- Taxonomy
- TimeSeriesLabels
- Filter
Visual
- Header
- Style
- Table
- View
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>