@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="paper-icon-button")
public class ToolbarIconButton
extends SlottedMenuItem
| Modifier and Type | Class and Description |
|---|---|
static class |
HasMenuItemCommands.Data |
| Constructor and Description |
|---|
ToolbarIconButton()
No argument constructor
|
ToolbarIconButton(String title)
Create a new instance of
MenuItem with a title. |
ToolbarIconButton(String title,
com.vaadin.flow.server.Command command)
Create a new instance of
MenuItem with a title and left-button command. |
ToolbarIconButton(String title,
String icon,
com.vaadin.flow.server.Command command)
Create a new instance of
MenuItem with a title, an icon, and left-button command. |
ToolbarIconButton(String title,
com.vaadin.flow.component.icon.VaadinIcon icon,
com.vaadin.flow.server.Command command)
Create a new instance of
MenuItem with a title, a VaadinIcon, and left-button command. |
| Modifier and Type | Method and Description |
|---|---|
default String |
getIcon() |
default String |
getImage() |
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) |
ToolbarIconButton |
setTitle(String title) |
onAttachaddListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, set, setElement, setId, setVisiblepublic ToolbarIconButton()
public ToolbarIconButton(String title)
MenuItem with a title.public ToolbarIconButton(String title, com.vaadin.flow.server.Command command)
MenuItem with a title and left-button command.public ToolbarIconButton(String title, com.vaadin.flow.component.icon.VaadinIcon icon, com.vaadin.flow.server.Command command)
MenuItem with a title, a VaadinIcon, and left-button command.public String getTitle()
public ToolbarIconButton setTitle(String title)
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.