Introduction
Node
is a mixin that provides basic properties and functions for all Wix objects on the page, including objects
that are not elements.
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 myType = $w("#Node").type;
Instead, you can code the following if myElement
is an element that
"mixes in" Node
.
javascript | Copy Codelet myType = $w("#myElement").type;
Was this helpful?