Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IMenuExtender<T>

A base interface for a consumer of one of the menu semantic extension points. The IMenuExtender gives a widget tracker which is checked when the menu is deciding which IMenuExtender to delegate to upon selection of the menu item.

Type parameters

  • T: Widget

Hierarchy

Index

Properties

Properties

Optional isEnabled

isEnabled: (widget: T) => boolean

Type declaration

    • (widget: T): boolean
    • An additional function that determines whether the extender is enabled. By default it is considered enabled if the application active widget is contained in the tracker. If this is also provided, the criterion is equivalent to tracker.has(widget) && extender.isEnabled(widget)

      Parameters

      • widget: T

      Returns boolean

tracker

tracker: IWidgetTracker<T>

A widget tracker for identifying the appropriate extender.

Generated using TypeDoc