@nextcloud/dialogs
    Preparing search index...

    Interface IFilePickerButton

    Interface to define buttons of the FilePicker component The buttons are based on the Dialog buttons but the callback gets the array of selected nodes

    interface IFilePickerButton {
        callback: (nodes: Node[]) => void | Promise<void>;
        disabled?: boolean;
        icon?: string;
        label: string;
        variant?:
            | "warning"
            | "error"
            | "primary"
            | "secondary"
            | "tertiary"
            | "success";
    }

    Hierarchy (View Summary)

    Index

    Properties

    callback: (nodes: Node[]) => void | Promise<void>

    Callback on button click

    Type Declaration

      • (nodes: Node[]): void | Promise<void>
      • Parameters

        • nodes: Node[]

          Array of @nextcloud/files Nodes that were selected

        Returns void | Promise<void>

    disabled?: boolean

    Disabled state of the button

    false
    
    icon?: string

    Optional Icon for the button Should be a SVG image as raw string

    label: string

    Label of the button

    variant?: "warning" | "error" | "primary" | "secondary" | "tertiary" | "success"

    Button type