Introduction
MobileValueMixin
is a mixin that provides basic properties and event handlers for elements on a mobile app that have values.
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 Codelet myValue = $w("#MobileValueMixin").value;
Instead, you can code the following if myMobileElement
is an element that
"mixes in" MobileValueMixin
.
javascript | Copy Codelet myValue = $w("#myMobileElement").value;
Was this helpful?