• Creates a BaseAction clazz for extension.

    Type Parameters

    Parameters

    • type: Type

      allowed values are 'button' and 'toggle'

    Returns BaseActionConstructor<Type>

    import BaseAction from "popups/BaseAction";
    new BaseAction("button")({
    id: "tweetablePopups.action.tweet",
    title: "Tweet Feature",
    className: "esri-icon-share2",
    image: "tweeter.png",
    isVisibleForFeature(feature){
    // only show feature if attribute exists
    return feature.attributes["attribute"] === true;
    },
    trigger(context){
    // do something
    }
    });