Interface: DialogProperties


CloudControl Pro 9 Docs / dialogs / DialogProperties

Interface: DialogProperties

dialogs.DialogProperties

The configuration properties of the dialog.

See

buildDialog

Table of contents

Properties

Properties

cancelable

Optional Readonly cancelable: boolean

dialog is cancelable, if false, dialog can only be canceled programmatically. Default is false.


canceledOnTouchOutside

Optional Readonly canceledOnTouchOutside: boolean

dialog is cancelable when click outside, default is true


checkBoxChecked

Optional Readonly checkBoxChecked: boolean

checkbox is checked


checkBoxPrompt

Optional Readonly checkBoxPrompt: string

checkbox text


content

Optional Readonly content: string

dialog content


contentColor

Optional Readonly contentColor: Color

dialog content color


contentLineSpacing

Optional Readonly contentLineSpacing: number

dialog content line height, 1.0 is the same as the line height of the text


customView

Optional Readonly customView: any

dialog custom view, use inflateXml to create. After using custom view, most configuration items will be invalid, e.g. content, progress, input.


icon

Optional Readonly icon: string

dialog icon, a URL or an image object


inputHint

Optional Readonly inputHint: string


inputPrefill

Optional Readonly inputPrefill: string

dialog input default value


items

Optional Readonly items: string[]

dialog list options


itemsColor

Optional Readonly itemsColor: Color

dialog list options color


itemsSelectMode

Optional Readonly itemsSelectMode: "multi" | "single" | "select"

dialog list options selection mode, can be: multi, single, select, respectively for multi-choice dialog, single-choice dialog, and selection list


itemsSelectedIndex

Optional Readonly itemsSelectedIndex: number | number[]

dialog list options selected index, if single mode, one index; if multi mode, an array


negative

Optional Readonly negative: string

dialog cancel button text(the left button of the confirm button)


negativeColor

Optional Readonly negativeColor: Color

dialog cancel button color(the left button of the confirm button)


neutral

Optional Readonly neutral: string

dialog neutral button text(the middle button)


neutralColor

Optional Readonly neutralColor: Color

dialog neutral button color(the left button)


positive

Optional Readonly positive: string

dialog confirm button text


positiveColor

Optional Readonly positiveColor: Color

dialog confirm button color(the right button)


progress

Optional Readonly progress: Object

dialog progress bar configuration

Type declaration

Name Type Description
horizontal? boolean show progress bar as horizontal
max number progress bar max value
progress? number progress bar current value
showMinMax? boolean show progress bar min and max value

title

Optional Readonly title: string

dialog title


type

Optional Readonly type: DialogType

dialog type, see DialogType. The default is defaultDialogType, and if defaultDialogType is not modified, it defaults to app.


wrapInScrollView

Optional Readonly wrapInScrollView: boolean

dialog is scrollable, default is true