Like selects, the range control element can have multiple item children or a single itemset child. Unlike selects, these are optional. When defined, each item defines a labeled tick on the slider:
- The item's value defines the position of the tick.
- The item's label defines the text displayed at that position.
For each tick label item, its value represents the tick position at which to display the label. It:
- MUST be present.
- MUST parse as a number that is between start and end inclusive.
- MUST align with the step increments:
- If
odk:tick-interval is specified, its numeric value MUST be a multiple of the tick-interval value relative to start
- If odk:tick-interval is not specified, its numeric value MUST be a multiple of the step value relative to
start
- If the no-ticks appearance is specified, the only valid underlying values for items are the values of start and end.
If multiple items have the same value, the client MUST use the first one in document order.
Clients MUST ignore any tick label item that violates the requirements above. If any or all items are invalid, the model value or any other behavior of the range control MUST NOT be affected.
Like selects, the range control element can have multiple item children or a single itemset child. Unlike selects, these are optional. When defined, each item defines a labeled tick on the slider:
For each tick label item, its value represents the tick position at which to display the label. It:
odk:tick-intervalis specified, its numeric value MUST be a multiple of the tick-interval value relative tostartstartIf multiple items have the same value, the client MUST use the first one in document order.
Clients MUST ignore any tick label item that violates the requirements above. If any or all items are invalid, the model value or any other behavior of the range control MUST NOT be affected.