Since 4.0
The mobi:flipSwitch component renders a control that toggles between on and off states.
Tos start using the FlipSwitch component, simply place the mobi:flipSwitch tag inside a form, bind its value to a boolean property in a backing bean, and optionally set labels for the on and off states.
<h:form>
<mobi:flipswitch id="switch"
labelOn="ON"
labelOff="OFF"
value="#{bean.switch}" />
</h:form>
TagLib Documentation
This section covers attributes involved in the typical use-cases for this component.
The value attribute must be of type Boolean and represents the current state of this component.
The labelOn specifies the label of the switch for the On state.
The labelOff specifies the label of the switch for the Off state.
None.
| action | Fired when the flip switch has changed its state. |
None.
None.
None.
This component appears in the following ICEfaces sample applications: