@NpmPackage(value="@polymer/iron-collapse",
version="^3.0.1")
@JsModule(value="./iron-collapse-button/iron-collapse-button.js") @JsModule(value="./fc-applayout/fc-menuitem.js")
@Tag(value="fc-menuitem")
public class MenuItem
extends SlottedMenuItem
implements com.vaadin.flow.component.HasOrderedComponents<MenuItem>
| Modifier and Type | Class and Description |
|---|---|
static class |
HasMenuItemCommands.Data |
| Constructor and Description |
|---|
MenuItem()
No argument constructor
|
MenuItem(String label)
Create a new instance of
MenuItem with a label. |
MenuItem(String label,
com.vaadin.flow.server.Command command)
Create a new instance of
MenuItem with a label and left-button command. |
MenuItem(String label,
String icon,
com.vaadin.flow.server.Command command)
Create a new instance of
MenuItem with a label, an icon, and left-button command. |
MenuItem(String label,
com.vaadin.flow.component.icon.VaadinIcon icon,
com.vaadin.flow.server.Command command)
Create a new instance of
MenuItem with a label, a VaadinIcon, and left-button command. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.vaadin.flow.component.Component... components) |
MenuItem |
add(MenuItem... items)
Adds the given menu items as children of this component.
|
default String |
getIcon() |
default String |
getImage() |
String |
getLabel() |
String |
getTitle() |
default T |
setCommand(com.vaadin.flow.server.Command command) |
default T |
setCommand(MouseClickEvent.MouseButton button,
com.vaadin.flow.server.Command command) |
default T |
setIcon(String icon) |
default T |
setImage(String imageUrl) |
MenuItem |
setLabel(String label) |
MenuItem |
setTitle(String title) |
onAttachaddListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentAt, getComponentCount, indexOf, replacepublic MenuItem()
public MenuItem(String label)
MenuItem with a label.public MenuItem(String label, com.vaadin.flow.server.Command command)
MenuItem with a label and left-button command.public MenuItem(String label, com.vaadin.flow.component.icon.VaadinIcon icon, com.vaadin.flow.server.Command command)
MenuItem with a label, a VaadinIcon, and left-button command.public final MenuItem add(MenuItem... items)
public void add(com.vaadin.flow.component.Component... components)
add in interface com.vaadin.flow.component.HasComponentspublic String getTitle()
public String getLabel()
public T setCommand(com.vaadin.flow.server.Command command)
public T setCommand(MouseClickEvent.MouseButton button, com.vaadin.flow.server.Command command)
public String getIcon()
public T setIcon(String icon)
public String getImage()
public T setImage(String imageUrl)
Copyright © 2018–2019 Flowing Code. All rights reserved.