MobileText
A text element on a mobile app. Learn more.
Additional information about this section
Store values associated with an object
- text
Sets or gets the plain-text contents of a text element.
- 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.
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.
- 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.