map.apps Bundle APIs 4.20.0
    Preparing search index...

    Interface ActionMethods

    Methods which have to be implemented by Actions.

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

    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>