Interface BaseActionDefinition

Properties shared by all action definitions.

interface BaseActionDefinition {
    id: string;
    isVisibleForItem?(item): boolean | Promise<boolean>;
    label?: string;
    type: ActionType;
}

Hierarchy (view full)

Properties

Methods

Properties

id: string

This action's unique id.

label?: string

A textual label (or title) for this action.

The type of this action.

Methods

  • Returns true if the action shall be available for the given item. Should return false otherwise.

    Note that this method may be asynchronous (i.e. return a Promise<boolean>).

    Parameters

    Returns boolean | Promise<boolean>

Generated using TypeDoc