interface FileListActionData {
    displayName: (view: View) => string;
    enabled?: (view: View, nodes: Node[], folder: Folder) => boolean;
    exec: (view: View, nodes: Node[], folder: Folder) => 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[], folder: Folder) => boolean

Returns true if this action shoud be shown

Type declaration

    • (view: View, nodes: Node[], folder: Folder): boolean
    • Parameters

      • view: View

        The current view

      • nodes: Node[]

        The nodes in the current directory

      • folder: Folder

        The current folder

      Returns boolean

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

Function to execute

Type declaration

    • (view: View, nodes: Node[], folder: Folder): Promise<void>
    • Parameters

      • view: View

        The current view

      • nodes: Node[]

        The nodes in the current directory

      • folder: Folder

        The current folder

      Returns Promise<void>

iconSvgInline?: (view: View) => string

Raw svg string

id: string

Unique ID

order: number

Sort order