CoworkDialogField
One field of a CoworkDialog. Its answer is values[id]: a string for text, textarea,
select and color; a number for number ("" while empty); a boolean for checkbox; a
section has none.
Properties
Section titled “Properties”id: string;label?
Section titled “label?”label?: string;monospace?
Section titled “monospace?”monospace?: boolean;options?
Section titled “options?”options?: CoworkDialogOption[];select: the choices. color: the swatches, each value a hex color (#rgb … #rrggbbaa)
or "" for no color — any other value is not drawn.
placeholder?
Section titled “placeholder?”placeholder?: string;For a section: its body text.
type: | "number" | "text" | "textarea" | "checkbox" | "select" | "section" | "color";value?
Section titled “value?”value?: string | number | boolean;The starting answer. Default: "" — false for a checkbox, the first option for a select.