Introduction
Important:
- This API is only relevant for custom widgets in Branded Apps.
- Custom widgets are not yet available to all users.
- This API is in Developer Preview and is subject to change.
This mixin provides functions for disabling and enabling mobile elements. When a mobile element is enabled,
its enabled
property is set to true
. When a mobile element is disabled,
its enabled
property is set to false
.
About Mixins
Mixins provide functionality that other elements can inherit and use.
Mixins are not elements. You cannot add mixins to a page in the Editor like other $w
elements, and mixins are not meant to be used directly
in your code.
For example, you would not write code like this, because it is out of context:
javascript | Copy Code$w("#MobileDisabledMixin").disable();
Instead, you can code the following if myMobileElement
is an element that can be disabled and
"mixes in" MobileDisabledMixin
.
javascript | Copy Code$w("#myMobileElement").disable();
Was this helpful?