MobileButton
A button element on a mobile app. Learn more.
Additional information about this section
Store values associated with an object
- label
Sets or gets a mobile button's label.
- id
Gets the mobile element's ID.
- parent
Gets the mobile element's parent element.
- type
Gets the mobile element's type.
- 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.
- enabled
Indicates if the mobile element is enabled or disabled.
Perform actions on an object
- 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.
- disable( )
Disables the mobile element and sets its enabled property to false.
- enable( )
Enables the mobile element and sets its enabled property to true.
- onLongPress( )
Adds an event handler that runs when the element is pressed for more than 500 milliseconds.
- onPress( )
Adds an event handler that runs when an element on a mobile app is pressed.
- onPressIn( )
Adds an event handler that runs immediately when an element on a mobile app is pressed.
- onPressOut( )
Adds an event handler that runs when an element on a mobile app is released after being pressed.