CoworkDialog
A dialog (cowork.ui.dialog): a question, a choice or a short form.
Properties
Section titled “Properties”alert?
Section titled “alert?”alert?: object;Why the last answer was refused — ask again with it.
text?: string;title?
Section titled “title?”title?: string;variant?
Section titled “variant?”variant?: "default" | "destructive";buttons?
Section titled “buttons?”buttons?: CoworkDialogButton[];Default: one OK.
detail?
Section titled “detail?”detail?: string;fields?
Section titled “fields?”fields?: CoworkDialogField[];message
Section titled “message”message: string;scope?
Section titled “scope?”scope?: "window" | "pane";"window" (default): over the whole window. "pane": over this pane only — ONLY for a choice that changes how things look (a theme), never one that creates, changes or deletes data.
type?: "error" | "warning" | "info" | "none";The header icon — "none" for a plain question. Default "info".