MobileSwitch
A switch used for a single binary choice on a mobile app. Learn more.
Additional information about this section
Store values associated with an object
- value
Sets or gets the value of the switch state.
- id
Gets the mobile element's ID.
- parent
Gets the mobile element's parent element.
- type
Gets the mobile element's type.
- enabled
Indicates if the mobile element is enabled or disabled.
- collapsed
Indicates if the element is collapsed or expanded.
- hidden
Indicates if the element is visible or hidden.
- isVisible
Indicates if the element is actually visible.
Perform actions on an object
- disable( )
Disables the mobile element and sets its enabled property to false.
- enable( )
Enables the mobile element and sets its enabled property to true.
- collapse( )
Collapses the element and sets its collapsed property to true.
- expand( )
Expands the element and sets its collapsed property to false.
- hide( )
Hides the element and sets its hidden property to true.
- show( )
Shows the element and sets its hidden property to false.