FlipSwitch

Table of Contents

Overview

Since 4.0

The mobi:flipSwitch component renders a control that toggles between on and off states.

Getting Started

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>

Attributes

TagLib Documentation
This section covers attributes involved in the typical use-cases for this component. For reference, the complete taglib documentation for this component is available here.

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.

Event Listeners

None.

Client Behavior Events

action Fired when the flip switch has changed its state.

JavaScript API

None.

Keyboard Support

None.

Known Issues

None.

Additional Resources

Sample Applications

This component appears in the following ICEfaces sample applications:

Tutorials

This component appears in the following ICEfaces tutorials:

None

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

© Copyright 2018 ICEsoft Technologies Canada Corp.