Options for a Dialogs instance.

interface DialogsOptions {
    dialogs?: Record<string, {
        cancelable: boolean;
        template: string;
        title: string;
    }>;
    globals?: Record<string, Function>;
    labels?: Record<string, string>;
    selector?: string;
}

Properties

dialogs?: Record<string, {
    cancelable: boolean;
    template: string;
    title: string;
}>

Optional object containing dialogs. Use this instead of providing a selector if you wish to supply dialog information via JS and not as templates in the HTML Each entry is in the form {template:string, title:string, cancelable:boolean}

Type declaration

  • cancelable: boolean
  • template: string
  • title: string
globals?: Record<string, Function>

Optional object of global callbacks, keyed by event id.

labels?: Record<string, string>

Optional object of button labels. See documentation.

selector?: string

Selector identifying dialog elements. If not provided, the value '.jtk-dialog' is used by default.

Version :