Skip to main content

Action

Callable


  • An @Action is a class decorator to be placed on top of a class that represents an action of one of ModelType.

    • A NodeType.MODEL action must implement the IModelAction interface.
    • A NodeType.OVERLAY action must implement the IModelAction interface.
    • A NodeType.RESOURCE action must implement the IResourceAction interface.
    @example
    @Action(MyModelClass)
    export class MyModelAction implements IModelAction { ... }
    @group

    Decorators

    @see

    Definition of Actions.


    Type parameters

    • T: UnknownNode

    Parameters

    • forNode: Constructable<T>

      The class of node for which this action is being declared.

    Returns (constructor: any) => void

    The decorated class.

      • (constructor: any): void
      • Parameters

        • constructor: any

        Returns void