Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IClearer<T>

Interface for an activity that wants to register a 'Clear...' menu item

Type parameters

  • T: Widget

Hierarchy

Index

Properties

Optional clearAll

clearAll: function

A function to clear all of an activity.

Type declaration

    • (widget: T): void
    • Parameters

      • widget: T

      Returns void

Optional clearCurrent

clearCurrent: function

A function to clear the currently portion of activity.

Type declaration

    • (widget: T): void
    • Parameters

      • widget: T

      Returns void

Optional isEnabled

isEnabled: function

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)

Type declaration

    • (widget: T): boolean
    • Parameters

      • widget: T

      Returns boolean

Optional noun

noun: string

A name for the thing to be cleared, used for labeling clearCurrent.

Optional pluralNoun

pluralNoun: string

A plural name for the thing to be cleared, used for labeling clearAll.

tracker

tracker: IWidgetTracker<T>

A widget tracker for identifying the appropriate extender.

Generated using TypeDoc