Skip to main content

<Number>

Category: Control tag

The Number tag supports numeric classification. Use to classify tasks using numbers.

Use with the following data types: audio, image, HTML, paragraphs, text, time series, video

Attributes​

AttributeTypeRequiredDefaultDescription
namestringyes—Name of the element
toNamestringyes—Name of the element that you want to label
minnumberno—Minimum number value
maxnumberno—Maximum number value
stepnumberno1Step for value increment/decrement
defaultValuenumberno—Default number value; will be added automatically to result for required fields
hotkeystringno—Hotkey for increasing number value
requiredtrue,falsenofalseWhether number is required or not
requiredMessagestringno—Message to show if validation fails
perRegiontrue,falseno—Use this tag to classify specific regions instead of the whole object
perItemtrue,falseno—Use this tag to classify specific items inside the object instead of the whole object
slidertrue,falsenofalseUse slider look instead of input; use min and max to add your constraints

Examples​

Basic labeling configuration for numeric classification of text​

<View>
<Text name="txt" value="$text" />
<Number name="number" toName="txt" max="10" />
</View>