Introduction
CheckedMixin
is a mixin that provides basic properties for elements on the page that can be checked.
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 isChecked = $w("#CheckedMixin").checked;
Instead, you can code the following, because checkboxes are elements
that "mix in" CheckedMixin
.
javascript | Copy Codelet isChecked = $w("#myCheckbox").checked;
Was this helpful?