@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;
        variant?:
            | "warning"
            | "error"
            | "primary"
            | "secondary"
            | "tertiary"
            | "success";
    }
    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

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

    Button type