The toggle element
Release 2.0 - ...
This action selects one possible case from an exclusive list of alternatives in a switch.
Example
| XML |
|
|---|---|
<xforms:toggle ev:event="DOMActivate" case="in"/> |
|
Attributes
| Name | Required / optional | Description |
|---|---|---|
| case | optional | Reference to a case element. The case to select is specified by this attribute or by the child element case. |
| Common Attributes | optional | Any attribute from the Common Attributes collection (e.g. id). |
| XML Events | optional | Any attribute from the XML Events collection (e.g. ev:event) |
| Common Action Attributes | optional | Any attribute from the Common Action Attributes collection (if or while) |
Content
The toggle element optionally allows a single case child element.
Specification
Link to the XForms specification: the toggle element.