Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IUndoer<T>

Interface for an activity that uses Undo/Redo.

Type parameters

  • T: Widget

Hierarchy

Index

Properties

Properties

Optional isEnabled

isEnabled: (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)

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

Optional redo

redo: (widget: T) => void

Type declaration

    • (widget: T): void
    • Execute a redo command for the activity.

      Parameters

      • widget: T

      Returns void

tracker

tracker: IWidgetTracker<T>

A widget tracker for identifying the appropriate extender.

Optional undo

undo: (widget: T) => void

Type declaration

    • (widget: T): void
    • Execute an undo command for the activity.

      Parameters

      • widget: T

      Returns void

Generated using TypeDoc