Switch

amx:selectBooleanSwitch

The Switch component displays two mutually exclusive choices. Typically ON and OFF. The switch is frequently used on Settings pages to turn on/off an attribute value. The component has the following elements:

Appearance

Appearance characteristics for this component.

Behavior

Common behaviors for this component.

Usage

Usage guidelines for this component.

Sample

AMX sample code for this component.

<amx:selectBooleanSwitch label="Enabled" id="sbs1" value="true"/>
<amx:selectBooleanSwitch label="Enabled" id="sbs1"/>
<amx:selectBooleanSwitch label="Disabled" id="sbs2" disabled="true"/>
<amx:selectBooleanSwitch label="Read-Only" id="sbs3" readOnly="true"/>

Related

Fig 1. iOS Switch

 

Fig 2. Android Switch