interface FileListActionData {
    displayName: ((view: View) => string);
    enabled?: ((view: View, nodes: Node[], context: ActionContext) => boolean);
    exec: ((view: View, nodes: Node[], context: ActionContext) => Promise<void>);
    iconSvgInline: ((view: View) => string);
    id: string;
    order: number;
}

Properties

displayName: ((view: View) => string)

Translated name of the action

enabled?: ((view: View, nodes: Node[], context: ActionContext) => boolean)

Returns true if this action shoud be shown

Type declaration

    • (view, nodes, context): boolean
    • Parameters

      Returns boolean

exec: ((view: View, nodes: Node[], context: ActionContext) => Promise<void>)

Function to execute

Type declaration

    • (view, nodes, context): Promise<void>
    • Parameters

      Returns Promise<void>

iconSvgInline: ((view: View) => string)

Raw svg string

id: string

Unique ID

order: number

Sort order