enabled


enabledbooleanRead-only

Indicates if the mobile element is enabled or disabled.

If enabled is true, users can interact with the mobile element.

If enabled is false, users cannot interact with the mobile element.

When an element is disabled:

  • Its color is faded or grayed out.
  • Actions that the element has been configured to perform, such as opening a link, do not occur.
  • Event handlers that have been bound to the element, such as with onPressIn, do not run.
  • If the element is an input element, such as a text box, users cannot interact with it.

To set the enabled property of a mobile element, use the element's enable() or disable() functions.

The enabled property can also be set in the Editor using the Properties and Events panel.

Was this helpful?
Yes
No