public class MenuItem<V> extends AbstractMenuItem<V,MenuItem<V>>
AbstractMenuItem for a menu item that can have a main text and a
description The base implementation for AbstractMenu itemsBaseDominoElement.ElementHandler<T>, BaseDominoElement.ResizeHandler<T>, BaseDominoElement.StyleEditor<E extends elemental2.dom.HTMLElement,T extends org.jboss.elemento.IsElement<E>>, BaseDominoElement.WavesStylerHasSelectionHandler.SelectionHandler<V>HasDeselectionHandler.DeselectionHandlerparentelement| Constructor and Description |
|---|
MenuItem(String text) |
MenuItem(String text,
String description) |
| Modifier and Type | Method and Description |
|---|---|
static <V> MenuItem<V> |
create(String text) |
static <V> MenuItem<V> |
create(String text,
String description) |
DominoElement<elemental2.dom.HTMLElement> |
getDescriptionElement() |
DominoElement<elemental2.dom.HTMLHeadingElement> |
getTextElement() |
boolean |
onSearch(String token,
boolean caseSensitive)
match the search token with both the text and description of the menu item
|
addDeselectionHandler, addLeftAddOn, addRightAddOn, addSelectionHandler, appendChild, appendChild, closeSubMenu, deselect, deselect, element, focus, getClickableElement, getContentElement, getKey, getNestingIndicator, getParent, getValue, hasMenu, isSelected, openSubMenu, removeSelectionHandler, select, select, setKey, setMenu, setNestingIndicator, setValueadd, add, addClickListener, addCss, addCss, addEventListener, addEventListener, addEventsListener, addHideListener, addShowListener, alignCenter, alignRight, apply, attr, blur, childNodes, clearElement, contains, contains, contains, containsCss, css, css, cssClassByIndex, cssClassesCount, cssText, disable, elevate, elevate, enable, firstChild, getAttachObserver, getAttribute, getBoundingClientRect, getChildElementCount, 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 MenuItem(String text)
public DominoElement<elemental2.dom.HTMLElement> getDescriptionElement()
public DominoElement<elemental2.dom.HTMLHeadingElement> getTextElement()
public boolean onSearch(String token, boolean caseSensitive)
onSearch in class AbstractMenuItem<V,MenuItem<V>>token - String search textcaseSensitive - boolean, true if the search is case-sensitiveCopyright © 2019–2022 Dominokit. All rights reserved.