@nextcloud/dialogs
    Preparing search index...

    Interface IDialogButton

    Interface for defining buttons passed to the Dialog component See NcDialogButton

    interface IDialogButton {
        callback: () => void;
        disabled?: boolean;
        icon?: string;
        label: string;
        type?: "primary" | "secondary" | "error" | "warning" | "success";
        variant?: "primary" | "secondary" | "error" | "success" | "tertiary";
    }
    Index

    Properties

    callback: () => void

    Callback on button click

    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

    type?: "primary" | "secondary" | "error" | "warning" | "success"

    Button type

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

    Button type