OpenDialog beta
Interface of @v12-engine/client
ts
export interface OpenDialogA dialog that is open: its title, words, buttons and the way to answer it
Members
body
ts
body?: () => Node;Built into the dialog's body, under the message
buttons
ts
buttons: DialogButton[];The dialog's buttons, left to right
close
ts
close: (value: string | undefined) => void;Closes the dialog and answers it with the value of the button pressed, or undefined when it was dismissed
id
ts
id: number;Unique id of the open dialog
message
ts
message?: string;Words shown under the title, above any body
title
ts
title: string;The dialog's heading