new ExpanderUtility(...)
Class constructor.
Methods
-
apply(isSilent)
- (instance) Recalculate and apply the styles to expand or collapse the expander
according to its current state.
-
toggle
- (instance) Toggle the expander so expands or, if it's already expanded, collapses.
-
expand(isSilent)
- (instance) Expand the expander.
-
collapse(isSilent)
- (instance) Collapse the expander.
-
isCollapsed
- (instance) Return true if the expander is currently collapse.
-
destroy
- (instance) Remove the expander from the page.
Links
new Expander(...)
o-expander constructor.
Methods
Links
ExpanderUtility#apply(isSilent)
Instance Method
Recalculate and apply the styles to expand or collapse the expander
according to its current state.
Links
ExpanderUtility#toggle
Instance Method
Toggle the expander so expands or, if it's already expanded, collapses.
Links
ExpanderUtility#expand(isSilent)
Instance Method
Expand the expander.
Links
ExpanderUtility#collapse(isSilent)
Instance Method
Collapse the expander.
Links
ExpanderUtility#isCollapsed
Instance Method
Return true if the expander is currently collapse.
Returns
Links
ExpanderUtility#destroy
Instance Method
Remove the expander from the page.
Links
Expander.createCustom(oExpanderElement, opts)
Static Method
Construct a custom expander. Useful to add customised expander
functionality to a component. E.g. to animate away collapsed items
rather than hide them immediately.
Links
Expander.init(rootElement, opts)
Static Method
Initialise the component.
Returns
-
Expander | Array.<Expander>
- - Expander instance(s)
Links
new Expander(...)
o-expander constructor.
Methods
Links