xforms:rangeAdded by IBM on October 10, 2012 | Version 1 (Original)
|Sets the range of values a user can select with a slider item.
Table 1. XForms range parameters
<xforms:range single node binding start="start" end="end"
|single node binding||string||See Single node binding.|
|start||integer or float||The starting value for the range.|
|end||integer or float||The end value for the range.|
|step||integer or float||How much each increment in the range increases the total. For example, a step of one counts by ones (1, 2, 3...) while a step of two counts by twos (1, 3, 5...).|
Example The following example shows and slider that allows the user to select any number between 1 and 10:
<xforms:range ref="rating" start="1" end="2" step="1">
<xforms:label>Rate this form on a scale of 1 to 10</xforms:label>
- Any item with an xforms:range option can trigger XForms actions using the xforms-value-changed event. For more information, refer to XForms event handlers.