logofirst
logofirst GitHub

Labels

Use the Labels tag to create a set of labels that can be assigned to identified regions. Use with the Label tag to specify the values of labels to assign to regions.

Use with the following data types: audio, text. Other data types have type-specific Labels tags.

Parameters

Param Type Default Description
name string Name of the element
toName string Name of the element that you want to label
[choice] single | multiple single Configure whether you can select one or multiple labels for a region
[maxUsages] number Maximum number of times a label can be used per task
[showInline] boolean true Whether to show labels in the same visual line
[opacity] float 0.6 Opacity of rectangle highlighting the label
[fillColor] string Rectangle fill color in hexadecimal
[strokeColor] string "#f48a42" Stroke color in hexadecimal
[strokeWidth] number 1 Width of the stroke

Example

<!--Basic labeling configuration to apply labels to a passage of text -->
<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>