public class SplitButton extends BaseDominoElement<elemental2.dom.HTMLElement,SplitButton>
This class is works like a button group but it will be always initialized with a default simple button. and only allow appending DropdownButton(s)
BaseDominoElement.ElementHandler<T>, BaseDominoElement.ResizeHandler<T>, BaseDominoElement.StyleEditor<E extends elemental2.dom.HTMLElement,T extends org.jboss.elemento.IsElement<E>>, BaseDominoElement.WavesStylerelement| Modifier and Type | Method and Description |
|---|---|
SplitButton |
addDropdown(DropdownButton dropdownButton)
appends a dropdown button the SplitButton group.
|
static SplitButton |
create(String text)
Creates a SplitButton with text
|
static SplitButton |
create(String text,
Color background)
Creates a SplitButton with text with background
|
static SplitButton |
create(String text,
StyleType type)
Creates a SplitButton with text and apply a
StyleType |
static SplitButton |
createDanger(String text)
Creates a SplitButton with text and apply
StyleType.DANGER |
static SplitButton |
createDefault(String text)
Creates a SplitButton with text and apply
StyleType.DEFAULT |
static SplitButton |
createInfo(String text)
Creates a SplitButton with text and apply
StyleType.INFO |
static SplitButton |
createPrimary(String text)
Creates a SplitButton with text and apply
StyleType.PRIMARY |
static SplitButton |
createSuccess(String text)
Creates a SplitButton with text and apply
StyleType.SUCCESS |
static SplitButton |
createWarning(String text)
Creates a SplitButton with text and apply
StyleType.WARNING |
elemental2.dom.HTMLElement |
element() |
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 elemental2.dom.HTMLElement element()
element in interface org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>element in class BaseDominoElement<elemental2.dom.HTMLElement,SplitButton>public static SplitButton create(String text)
text - String - the button textpublic static SplitButton create(String text, Color background)
text - String - the button textbackground - the background Colorpublic static SplitButton create(String text, StyleType type)
StyleTypetext - String - the button texttype - StyleTypepublic static SplitButton createDefault(String text)
StyleType.DEFAULTtext - String - the button textpublic static SplitButton createPrimary(String text)
StyleType.PRIMARYtext - String - the button textpublic static SplitButton createSuccess(String text)
StyleType.SUCCESStext - String - the button textpublic static SplitButton createInfo(String text)
StyleType.INFOtext - String - the button textpublic static SplitButton createWarning(String text)
StyleType.WARNINGtext - String - the button textpublic static SplitButton createDanger(String text)
StyleType.DANGERtext - String - the button textpublic SplitButton addDropdown(DropdownButton dropdownButton)
dropdownButton - The DropdownButton to wrapCopyright © 2019–2022 Dominokit. All rights reserved.