public class ButtonsGroup extends WavesElement<elemental2.dom.HTMLElement,ButtonsGroup> implements IsGroup<ButtonsGroup>, Sizable<ButtonsGroup>
This component wraps a set of different Buttons into one group the grouped buttons can be aligned horizontally or vertically and the group can apply some properties to all grouped button
ButtonsGroup.create()
.appendChild(Button.createDefault("LEFT"))
.appendChild(Button.createDefault("MIDDLE"))
.appendChild(Button.createDefault("RIGHT"))
.setSize(ButtonSize.LARGE);
BaseDominoElement.ElementHandler<T>, BaseDominoElement.ResizeHandler<T>, BaseDominoElement.StyleEditor<E extends elemental2.dom.HTMLElement,T extends org.jboss.elemento.IsElement<E>>, BaseDominoElement.WavesStylerwavesSupportelement| Constructor and Description |
|---|
ButtonsGroup()
default constructor
|
| Modifier and Type | Method and Description |
|---|---|
ButtonsGroup |
appendChild(Button button)
adds a Button to the ButtonsGroup
|
ButtonsGroup |
appendChild(DropdownButton dropDown)
adds a DropdownButton to the ButtonsGroup
|
static ButtonsGroup |
create() |
elemental2.dom.HTMLElement |
element() |
ButtonsGroup |
horizontalAlign()
sets the buttons group as a horizontal buttons group aligning the buttons horizontally
|
ButtonsGroup |
large()
set the size to large
|
ButtonsGroup |
medium()
set the size to medium
|
ButtonsGroup |
setSize(ButtonSize size)
Apply a size to all buttons in the ButtonsGroup
|
ButtonsGroup |
small()
set the size to small
|
ButtonsGroup |
verticalAlign()
sets the buttons group as a vertical buttons group aligning the buttons vertically
|
ButtonsGroup |
xSmall()
set the size to xSmall
|
applyWaveStyle, init, initWaves, removeWaves, setWaveColoradd, 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, 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, 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 static ButtonsGroup create()
public ButtonsGroup appendChild(Button button)
appendChild in interface IsGroup<ButtonsGroup>button - Buttonpublic ButtonsGroup appendChild(DropdownButton dropDown)
appendChild in interface IsGroup<ButtonsGroup>dropDown - DropdownButtonpublic elemental2.dom.HTMLElement element()
element in interface org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>element in class BaseDominoElement<elemental2.dom.HTMLElement,ButtonsGroup>public ButtonsGroup setSize(ButtonSize size)
size - ButtonSizepublic ButtonsGroup verticalAlign()
verticalAlign in interface IsGroup<ButtonsGroup>public ButtonsGroup horizontalAlign()
horizontalAlign in interface IsGroup<ButtonsGroup>public ButtonsGroup large()
large in interface Sizable<ButtonsGroup>public ButtonsGroup medium()
medium in interface Sizable<ButtonsGroup>public ButtonsGroup small()
small in interface Sizable<ButtonsGroup>public ButtonsGroup xSmall()
xSmall in interface Sizable<ButtonsGroup>Copyright © 2019–2022 Dominokit. All rights reserved.