L - Click listener typeM - Concrete ContextMenu component typeB - Parent configurator typepublic static interface ContextMenuConfigurator.MenuItemBuilder<L extends EventListener,M extends com.vaadin.flow.component.contextmenu.ContextMenuBase<M>,B extends ContextMenuConfigurator<L,M,B>> extends HasEnabledConfigurator<ContextMenuConfigurator.MenuItemBuilder<L,M,B>>, HasTextConfigurator<ContextMenuConfigurator.MenuItemBuilder<L,M,B>>
| Modifier and Type | Method and Description |
|---|---|
B |
add()
Add the menu item to the context menu.
|
ContextMenuConfigurator.MenuItemBuilder<L,M,B> |
id(String id)
Sets the id of the root element of the menu item.
|
default ContextMenuConfigurator.MenuItemBuilder<L,M,B> |
onClick(L menuItemClickListener)
Register a menu item click event listener.
|
ContextMenuConfigurator.MenuItemBuilder<L,M,B> |
withClickListener(L menuItemClickListener)
Register a menu item click event listener.
|
disabled, enabledtext, text, textContextMenuConfigurator.MenuItemBuilder<L,M,B> id(String id)
id - the id to setContextMenuConfigurator.MenuItemBuilder<L,M,B> withClickListener(L menuItemClickListener)
menuItemClickListener - The listener to add (not null)default ContextMenuConfigurator.MenuItemBuilder<L,M,B> onClick(L menuItemClickListener)
Alias for withClickListener(EventListener).
menuItemClickListener - The listener to add (not null)B add()
Copyright © 2019 The Holon Platform. All rights reserved.