Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a context menu item.

Hierarchy

  • ContextMenuItem

Index

Properties

Optional checked

checked: boolean

Whether the item is checked.

Optional disabled

disabled: boolean

Whether the item is disabled.

Optional icon

icon: String

The item icon URL.

Optional items

Submenu items.

Optional label

label: String

The item label.

Optional removeIconPrespace

removeIconPrespace: boolean

Whether to remove icon prespace.

Optional tag

tag: String

type

type: "normal" | "separator" | "submenu"

The item type. Can either be separator, normal, or submenu.

Methods

Optional onclick

  • onclick(e: MouseEvent, tag: string): void
  • Fired when the item was clicked.

    Parameters

    • e: MouseEvent
    • tag: string

    Returns void

Optional onhover

  • onhover(e: MouseEvent, tag: string): void
  • Fired when the item was hovered on.

    Parameters

    • e: MouseEvent
    • tag: string

    Returns void

Generated using TypeDoc