Search.../

Introduction

To learn about the behavior of a collapsed element, see the collapsed property.

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:

$w("#CollapsedMixin").collapse();
javascript | Copy Code

Instead, you can code the following if myElement is an element that can be collapsed and
"mixes in" CollapsedMixin.

$w("#myElement").collapse();
javascript | Copy Code

Was this helpful?