new (require("core/local/collapsable_section/controls"))(element)
- Description:
Creates an instance of the controls for a collapsable section.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
element |
HTMLElement | The DOM element that this control will manage. |
Methods
(static) instanceFromSelector(selector) → {CollapsableSection}
- Description:
Create a new instance from a query selector.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
selector |
String | The selector of the collapsable section. |
Throws:
-
If no elements are found with the selector.
- Type
- Error
Returns:
The collapsable section controls.
- Type
- CollapsableSection