DialogProperties
dialogs DialogProperties
Configuration object for building a dialog.
See also
Table of contents
Properties
- cancelable
- canceledOnTouchOutside
- checkBoxChecked
- checkBoxPrompt
- content
- contentColor
- contentLineSpacing
- customView
- icon
- inputHint
- inputPrefill
- items
- itemsColor
- itemsSelectMode
- itemsSelectedIndex
- negative
- negativeColor
- neutral
- neutralColor
- positive
- positiveColor
- progress
- title
- type
- wrapInScrollView
Properties
cancelable
OptionalReadonlycancelable:boolean
Whether the dialog can be dismissed by the user. If false, it can only be closed from code. Default false.
canceledOnTouchOutside
OptionalReadonlycanceledOnTouchOutside:boolean
Whether tapping outside the dialog dismisses it. Default true.
checkBoxChecked
OptionalReadonlycheckBoxChecked:boolean
Initial checked state of the checkbox.
checkBoxPrompt
OptionalReadonlycheckBoxPrompt:string
Label text for the checkbox.
content
OptionalReadonlycontent:string
Main message body text.
contentColor
OptionalReadonlycontentColor:Color
Color of the message text.
contentLineSpacing
OptionalReadonlycontentLineSpacing:number
Line-height multiplier for the message; 1.0 is single spacing.
customView
OptionalReadonlycustomView:any
Custom view (for example from inflateXml). When set, most built-in fields (content, progress, input, etc.) are ignored—you must build those in the custom view.
icon
OptionalReadonlyicon:string
Icon URL or image object.
inputHint
OptionalReadonlyinputHint:string
Hint text for the input field.
inputPrefill
OptionalReadonlyinputPrefill:string
Default text placed in the input field.
items
OptionalReadonlyitems:string[]
List entries for a list-style dialog.
itemsColor
OptionalReadonlyitemsColor:Color
Text color for list items.
itemsSelectMode
OptionalReadonlyitemsSelectMode:"multi"|"single"|"select"
List selection mode: multi (checkboxes), single (radio), or select (simple choice list).
itemsSelectedIndex
OptionalReadonlyitemsSelectedIndex:number|number[]
Pre-selected item index(es): a single number in single-select mode, or an array in multi-select mode.
negative
OptionalReadonlynegative:string
Label for the negative button (to the left of the positive button—typically “Cancel”).
negativeColor
OptionalReadonlynegativeColor:Color
Text color for the negative button.
neutral
OptionalReadonlyneutral:string
Label for the neutral button (leftmost when shown).
neutralColor
OptionalReadonlyneutralColor:Color
Text color for the neutral button.
positive
OptionalReadonlypositive:string
Label for the positive button (rightmost—typically “OK”).
positiveColor
OptionalReadonlypositiveColor:Color
Text color for the positive button.
progress
OptionalReadonlyprogress:Object
Progress bar configuration.
Type declaration
| Name | Type | Description |
|---|---|---|
horizontal? | boolean | Use a horizontal bar; default false. |
max | number | Maximum value. |
progress? | number | Current value. |
showMinMax? | boolean | Show min/max indicators; default true. |
title
OptionalReadonlytitle:string
Dialog title.
type
OptionalReadonlytype:DialogType
Dialog kind. See DialogType and defaultDialogType. If unset, follows defaultDialogType (often app).
wrapInScrollView
OptionalReadonlywrapInScrollView:boolean
Wrap content in a scroll view. Default true.
