interface ActionButtonDefinition {
    actionEvent: string;
    displayOn: "data" | "all" | "geo";
    icon: string;
    tooltip: string;
}

Properties

actionEvent: string

The name of the event to raise when the button is clicked.

displayOn: "data" | "all" | "geo"

Which layer format this button should appear for. Options are 'geo' for map layers, 'data' for data layers, or 'all' for both.

icon: string

Icon of the button. Treated as HTML. So could be an Emoji, could be SVG tags. Image tag might work?

tooltip: string

Tooltip for the button