Optional
cancelLabel for cancel button.
Optional
checkboxThe checkbox to display in the footer. Defaults no checkbox.
Optional
defaultThe index of the default button. Defaults to the last button.
Optional
hostThe host element for the dialog. Defaults to document.body
.
Optional
labelLabel of the requested input
Optional
okLabel for ok button.
Optional
patternPattern used by the browser to validate the input value.
Optional
placeholderPlaceholder text
Optional
prefixAdditional prefix string preceding the input (e.g. £).
Optional
rendererAn optional renderer for dialog items. Defaults to a shared default renderer.
Optional
requiredWhether the input is required (has to be non-empty).
Optional
selectionSelection range
Number of characters to pre-select when dialog opens. Default is to select the whole input text if present.
Optional
suffixAdditional suffix string following the input (e.g. $).
Optional
textDefault input text
The top level text for the dialog. Defaults to an empty string.
Constructor options for text input dialogs