@halone/sdk / DialogSpec
Interface: DialogSpec
A dialog the shell shows over a window on a web page's behalf: an alert, a confirmation, a question, a site login, a file to upload, or several choices from a list.
Properties
accept?
ts
optional accept?: string[];files: the types the page accepts, such as image/* or .pdf; empty for any.
buttons
ts
buttons: DialogButton[];choices?
ts
optional choices?: MenuItem[];choices: the list, checked for those chosen.
inputType?
ts
optional inputType?: "date" | "month" | "week" | "time" | "datetime-local";datetime: which picker, as <input type> names it.
kind
ts
kind: "files" | "message" | "text" | "login" | "choices" | "datetime" | "color";max?
ts
optional max?: string;message
ts
message: string;min?
ts
optional min?: string;datetime: the input's limits and step, as the page wrote them.
multiple?
ts
optional multiple?: boolean;files: whether several may be chosen.
password?
ts
optional password?: string;step?
ts
optional step?: string;swatches?
ts
optional swatches?: string[];color: colours the page suggests, as #rrggbb.
title
ts
title: string;username?
ts
optional username?: string | null;login: the name it starts with, or null to ask for a password only.
value?
ts
optional value?: string;text, datetime and color: the answer it starts with, in the input's own format.
