@nextcloud/files
    Preparing search index...

    Interface FileListActionData

    interface FileListActionData {
        displayName: (context: ViewActionContext) => string;
        enabled?: (context: ViewActionContext) => boolean;
        exec: (context: ViewActionContext) => Promise<boolean | null>;
        iconSvgInline?: (context: ViewActionContext) => string;
        id: string;
        order: number;
    }
    Index

    Properties

    displayName: (context: ViewActionContext) => string

    Translated name of the action

    enabled?: (context: ViewActionContext) => boolean

    Condition whether this action is shown or not

    exec: (context: ViewActionContext) => Promise<boolean | null>

    Function executed on single file action

    Type Declaration

      • (context: ViewActionContext): Promise<boolean | null>
      • Parameters

        Returns Promise<boolean | null>

        true if the action was executed successfully, false otherwise and null if the action is silent/undefined.

    If the action failed

    iconSvgInline?: (context: ViewActionContext) => string

    Raw svg string

    id: string

    Unique ID

    order: number

    Sort order