The xforms-readwrite event
Release 2.0 - ...
Dispatched in response to: an instance data node either changing and being or becoming read-write.
Event Properties
| Event Properties | Value / Description |
|---|---|
| Target | Core Form Controls | group | switch |
| Bubbles | Yes |
| Cancelable | No |
| Context Info | None |
The default action for this event results in the following:
- None, notification event only.
This event is dispatched during the xforms-refresh event if the bound instance data node has been marked for dispatching this event in the xforms-recalculate event or the xforms-refresh event.
Example
| XML |
|
|---|---|
<xforms:model> <xforms:instance> <car modifiable="false"> <make>Toyota</make> </car> </xforms:instance> <xforms:bind nodeset="make" readonly="not(boolean-from-string(../@modifiable))" /> <xforms:setvalue ref="@modifiable" ev:event="xforms-ready">true</xforms:setvalue> </xforms:model> <xforms:input ref="make"> <xforms:label>Car make : </xforms:label> <xforms:message ev:event="xforms-readwrite" level="modal">xforms-readwrite event</xforms:message> </xforms:input> |
|
Specification
Link to the XForms specification: the xforms-readwrite event.