Methods which have to be implemented by Actions.

interface ActionMethods {
    isVisibleForFeature(feature: Graphic): boolean;
    trigger(context: ActionContext): void | Promise<void>;
}

Methods

  • Returns true, if the action is visible for a certain feature. If this method is not provided, the default value is true.

    Parameters

    • feature: Graphic

      The feature.

    Returns boolean

  • Triggers the action.

    Parameters

    Returns void | Promise<void>