journey.dialog
Version compatibility
journey.dialog
was introduced with version 4.80.0 of the JourneyApps Runtime.
Dialogs appear as blocking overlays that provides information or confirms destructive behavior. They often prompt users to make a decision.
These docs describe dialogs called from JavaScript/TypeScript. For more fully featured, dynamic dialogs, please refer to the dialog
UI component docs. These dialogs are specified from the view XML and can include nested components.
Simple Dialog
Display a dialog with a message and one button.
Property | Description | Example |
---|---|---|
| Heading displayed on the dialog | |
| Main message displayed in the dialog | |
| Dialog's OK button. This can either be a string or an object with Returns |
|
Example:
Confirm Dialog
Display a dialog with a message prompting the user to accept or cancel.
Property | Description | Example |
---|---|---|
| Heading displayed on the dialog | |
| Main message displayed in the dialog | |
| Dialog's OK button. This can either be a string or an object with Returns |
|
| Dialog's Cancel button. This can either be a string or an object with Returns |
|
Example:
Input Dialog
Display a dialog with a message and a text-input
for simple data entry.
For more advanced composition dialogs, see the dialog component documentation.
Property | Description | Example |
---|---|---|
| Heading displayed on the dialog | |
| Main message displayed in the dialog | |
| Dialog's Save button. This can either be a string or an object with Returns the entered value as a |
|
| Dialog's Cancel button. This can either be a string or an object with Returns |
|
| Label for the input component | |
| Type of input required from the user. Can be one of the following types (reference: HTML Input Types):
|
|
| Current value set for the input component |
Example:
Error Dialog
Display a dialog with only a message and one button to indicate an error state.
Property | Description | Example |
---|---|---|
| Heading displayed on the dialog | |
| Main message displayed in the dialog | |
| Dialog's OK button. This can either be a string or an object with Returns |
|
Example:
Last updated