MessageDialog
Configs
120
Configs
120Common
Content
CSS
DOM
Float & align
Layout
misc
Misc
Other
Scrolling
Properties
98
Properties
98Other
The enum value for the Cancel button
The enum value for the OK button
Class hierarchy
CSS
DOM
Layout
Misc
State
Widget hierarchy
Functions
78
Functions
78Other
Shows an alert popup with a message. The returned promise resolves when the button is clicked.
| Parameter | Type | Description |
|---|---|---|
options | Object | An options object for what to show. |
options.modal | Boolean | Set to |
options.title | String | The title to show in the dialog header. |
options.message | String | The message to show in the dialog body. |
options.rootElement | String | The root element of this widget, defaults to document.body. Use this if you use the MessageDialog inside a web component ShadowRoot |
options.okButton | String | ButtonConfig | A text or config object to apply to the OK button. |
A promise which is resolved when the dialog is closed
Shows a confirm dialog with "Ok" and "Cancel" buttons. The returned promise resolves passing the button identifier of the button that was pressed (okButton or cancelButton).
| Parameter | Type | Description |
|---|---|---|
options | Object | An options object for what to show. |
options.modal | Boolean | Set to |
options.title | String | The title to show in the dialog header. |
options.message | String | The message to show in the dialog body. |
options.rootElement | String | The root element of this widget, defaults to document.body. Use this if you use the MessageDialog inside a web component ShadowRoot |
options.cancelButton | String | ButtonConfig | A text or a config object to apply to the Cancel button. |
options.okButton | String | ButtonConfig | A text or config object to apply to the OK button. |
A promise which is resolved when the dialog is closed
Shows a popup with a basic TextField along with a message. The returned promise resolves when
the dialog is closed and yields an Object with a button (okButton or cancelButton)
and a text property with the text the user provided
| Parameter | Type | Description |
|---|---|---|
options | Object | An options object for what to show. |
options.modal | Boolean | Set to |
options.title | String | The title to show in the dialog header. |
options.message | String | The message to show in the dialog body. |
options.rootElement | String | The root element of this widget, defaults to document.body. Use this if you use the MessageDialog inside a web component ShadowRoot |
options.textField | TextFieldConfig | A config object to apply to the TextField. |
options.cancelButton | String | ButtonConfig | A text or a config object to apply to the Cancel button. |
options.okButton | String | ButtonConfig | A text or config object to apply to the OK button. |
A promise which is resolved when the dialog is closed. The promise yields an Object with
a button (okButton or cancelButton) and a text property with the text the
user provided
Configuration
Events
Misc
Widget hierarchy
Events
22
Events
22Event handlers
22
Event handlers
22Typedefs
7
Typedefs
7CSS variables
62
CSS variables
62| Name | Description |
|---|---|
--b-message-dialog-min-width | MessageDialog min-width |
--b-message-dialog-button-min-width | MessageDialog button min-width |