T - The value type of the actions inside the grouppublic class DropdownActionsGroup<T> extends BaseDominoElement<elemental2.dom.HTMLLIElement,DropdownActionsGroup<T>>
DropDownMenu
This component provides grouping facility to group a list of actions and a title for them
Customize the component can be done by overwriting classes provided by DropDownStyles
For example:
DropdownActionsGroup.create("America")
.appendChild(DropdownAction.create("United States of America"))
.appendChild(DropdownAction.create("Brazil"))
.appendChild(DropdownAction.create("Argentina"));
BaseDominoElement,
DropDownMenu,
DropdownActionBaseDominoElement.ElementHandler<T>, BaseDominoElement.ResizeHandler<T>, BaseDominoElement.StyleEditor<E extends elemental2.dom.HTMLElement,T extends org.jboss.elemento.IsElement<E>>, BaseDominoElement.WavesStyler| Constructor and Description |
|---|
DropdownActionsGroup(elemental2.dom.Node titleElement) |
| Modifier and Type | Method and Description |
|---|---|
DropdownActionsGroup<T> |
appendChild(DropdownAction<T> action)
Adds action to the group
|
void |
bindTo(DropDownMenu menu)
Appends this group to a
menu, this will add all the actions to the menu without the
title |
static <T> DropdownActionsGroup<T> |
create(elemental2.dom.HTMLElement titleElement)
Creates an empty group with an element
title |
static <T> DropdownActionsGroup<T> |
create(org.jboss.elemento.IsElement<?> titleElement)
Creates an empty group with an element
title |
static <T> DropdownActionsGroup<T> |
create(elemental2.dom.Node titleElement)
Creates an empty group with an element
title |
static <T> DropdownActionsGroup<T> |
create(String title)
Creates an empty group with a text
title |
elemental2.dom.HTMLLIElement |
element() |
List<DropdownAction<T>> |
getActions() |
add, add, addClickListener, addCss, addCss, addEventListener, addEventListener, addEventsListener, addHideListener, addShowListener, alignCenter, alignRight, appendChild, appendChild, apply, attr, blur, childNodes, clearElement, contains, contains, contains, containsCss, css, css, cssClassByIndex, cssClassesCount, cssText, disable, elevate, elevate, enable, firstChild, getAttachObserver, getAttribute, getBoundingClientRect, getChildElementCount, getClickableElement, getCollapsible, getCollapsibleElement, getDetachObserver, getDominoId, getElementsCount, getElevation, getFirstChild, getId, getTextContent, getTooltip, getWavesElement, hasAttribute, hasChildNodes, hasDirectChild, hide, hideOn, id, init, insertAfter, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertBefore, insertFirst, insertFirst, insertFirst, isAttached, isCollapsed, isDisabled, isEmptyElement, isEqualNode, isForceHidden, isHidden, isReadOnly, item, lastChild, length, onAttached, onDetached, onResize, pullLeft, pullRight, querySelector, querySelectorAll, remove, removeAttachObserver, removeAttribute, removeChild, removeChild, removeCss, removeCss, removeCssProperty, removeDetachObserver, removeEventListener, removeEventListener, removeHideListener, removeHideOn, removeShowListener, removeShowOn, removeTooltip, removeWaves, replaceCss, setAlignItems, setAttribute, setAttribute, setAttribute, setBackgroundColor, setBackgroundColor, setBorder, setBorderColor, setBottom, setBottom, setBoxShadow, setCollapseStrategy, setColor, setColor, setContent, setContent, setCssProperty, setCssProperty, setCursor, setCursor, setDisabled, setDisplay, setDisplay, setDropMenu, setFlex, setFloat, setFloat, setFontSize, setFontSize, setForceHidden, setHeight, setHeight, setId, setInnerHtml, setLeft, setLeft, setLineHeight, setLineHeight, setMargin, setMargin, setMarginBottom, setMarginBottom, setMarginLeft, setMarginLeft, setMarginRight, setMarginRight, setMarginTop, setMarginTop, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setOpacity, setOpacity, setOverFlow, setOverFlow, setOverFlowY, setPadding, setPadding, setPaddingBottom, setPaddingBottom, setPaddingLeft, setPaddingLeft, setPaddingRight, setPaddingRight, setPaddingTop, setPaddingTop, setPointerEvents, setPosition, setPosition, setReadOnly, setRight, setRight, setTabIndex, setTextAlign, setTextAlign, setTextContent, setTooltip, setTooltip, setTooltip, setTooltip, setTop, setTop, setTransitionDuration, setWidth, setWidth, setZIndex, show, showOn, style, style, styler, textContent, toggleDisplay, toggleDisplay, withWaves, withWavesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisExpandedadd, add, remove, remove, removeProperty, replace, setProperty, setPropertypublic DropdownActionsGroup(elemental2.dom.Node titleElement)
public static <T> DropdownActionsGroup<T> create(String title)
titleT - the value type of the actions inside the grouptitle - the title of the grouppublic static <T> DropdownActionsGroup<T> create(elemental2.dom.Node titleElement)
titleT - the value type of the actions inside the grouptitleElement - the title Node of the grouppublic static <T> DropdownActionsGroup<T> create(elemental2.dom.HTMLElement titleElement)
titleT - the value type of the actions inside the grouptitleElement - the title HTMLElement of the grouppublic static <T> DropdownActionsGroup<T> create(org.jboss.elemento.IsElement<?> titleElement)
titleT - the value type of the actions inside the grouptitleElement - the title IsElement of the grouppublic DropdownActionsGroup<T> appendChild(DropdownAction<T> action)
action - the DropdownAction to addpublic List<DropdownAction<T>> getActions()
public elemental2.dom.HTMLLIElement element()
element in interface org.jboss.elemento.IsElement<elemental2.dom.HTMLLIElement>element in class BaseDominoElement<elemental2.dom.HTMLLIElement,DropdownActionsGroup<T>>public void bindTo(DropDownMenu menu)
menu, this will add all the actions to the menu without the
titlemenu - the menu to bind toCopyright © 2019–2022 Dominokit. All rights reserved.