public interface CollapseStrategy
Collapsible
to show and hide the element.| Modifier and Type | Method and Description |
|---|---|
default void |
cleanup(elemental2.dom.HTMLElement element,
Style<elemental2.dom.HTMLElement,org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>> style)
Implement this method to clean up any attributes or styles added the strategy when we switch to
a different one.
|
void |
hide(elemental2.dom.HTMLElement element,
Style<elemental2.dom.HTMLElement,org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>> style)
Implement this method to hide a collapsible element
|
default void |
init(elemental2.dom.HTMLElement element,
Style<elemental2.dom.HTMLElement,org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>> style)
Implement this method to provide any initialization required for the collapse strategy
|
void |
show(elemental2.dom.HTMLElement element,
Style<elemental2.dom.HTMLElement,org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>> style)
Implement this method to show a collapsible element
|
default void init(elemental2.dom.HTMLElement element,
Style<elemental2.dom.HTMLElement,org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>> style)
element - The collapsible HTMLElementstyle - the Style of the elementvoid show(elemental2.dom.HTMLElement element,
Style<elemental2.dom.HTMLElement,org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>> style)
element - The collapsible HTMLElementstyle - the Style of the elementvoid hide(elemental2.dom.HTMLElement element,
Style<elemental2.dom.HTMLElement,org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>> style)
element - The collapsible HTMLElementstyle - the Style of the elementdefault void cleanup(elemental2.dom.HTMLElement element,
Style<elemental2.dom.HTMLElement,org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>> style)
element - The collapsible HTMLElementstyle - the Style of the elementCopyright © 2019–2022 Dominokit. All rights reserved.