Options
All
  • Public
  • Public/Protected
  • All
Menu

Type Parameters

    Hierarchy

    • ContextMenuEntry

    Index

    Properties

    name: string

    The context menu label. Can be localized.

    icon: string

    A string containing an HTML icon element for the menu item

    group: string

    An identifier for a group this entry belongs to.

    callback: ((arg0: jQuery) => any)

    Type declaration

      • (arg0: jQuery): any
      • The function to call when the menu item is clicked. Receives the HTML element of the entry that this context menu is for.

        Parameters

        • arg0: jQuery

        Returns any

    condition: ((arg0: jQuery) => boolean)

    Type declaration

      • (arg0: jQuery): boolean
      • A function to call to determine if this item appears in the menu. Receives the HTML element of the entry that this context menu is for.

        Parameters

        • arg0: jQuery

        Returns boolean