Class MenuItem

All Implemented Interfaces:
AttachNotifier, DetachNotifier, HasComponents, HasElement, HasEnabled, HasOrderedComponents, HasStyle, Serializable

@NpmPackage(value="@polymer/iron-collapse",version="3.0.1") @NpmPackage(value="@polymer/paper-item",version="3.0.1") @NpmPackage(value="@flowingcode/fc-menuitem",version="1.0.0") @Tag("fc-menuitem") @JsModule("@flowingcode/fc-menuitem/fc-menuitem.js") public class MenuItem extends SlottedMenuItem implements HasOrderedComponents
Menu item component.
Author:
mlopez
See Also:
  • Constructor Details

    • MenuItem

      public MenuItem()
      No argument constructor
    • MenuItem

      public MenuItem(String label)
      Create a new instance of MenuItem with a label.
    • MenuItem

      public MenuItem(String label, Command command)
      Create a new instance of MenuItem with a label and left-button command.
    • MenuItem

      public MenuItem(String label, Class<? extends Component> navigationTarget)
      Create a new instance of MenuItem with a label for the given navigation target.
    • MenuItem

      public MenuItem(String label, String icon)
      Create a new instance of MenuItem with a label and an icon.
    • MenuItem

      public MenuItem(String label, IconFactory icon)
      Create a new instance of MenuItem with a label and an IconFactory.
    • MenuItem

      public MenuItem(String label, IconFactory icon, Command command)
      Create a new instance of MenuItem with a label, an IconFactory, and left-button command.
    • MenuItem

      public MenuItem(String label, String icon, Command command)
      Create a new instance of MenuItem with a label, an icon, and left-button command.
  • Method Details