Creates a new ContentDialog control.
Optional
element: HTMLElementOptional
options: anyAn object that contains one or more property/value pairs to apply to the new control. Each property of the options object corresponds to one of the control's properties or events.
Gets the DOM element that hosts the ContentDialog control.
Gets or sets the ContentDialog's visibility.
Indicates whether the button representing the primary command is currently disabled.
The text displayed on the primary command's button.
Indicates whether the button representing the secondary command is currently disabled.
The text displayed on the secondary command's button.
The text displayed as the title of the dialog.
Static
DismissalSpecifies the result of dismissing the ContentDialog.
The dialog was dismissed without the user selecting any of the commands. The user may have dismissed the dialog by hitting the escape key or pressing the hardware back button.
The user dismissed the dialog by pressing the primary command.
The user dismissed the dialog by pressing the secondary command.
Static
supportedIndicates that the object is compatibile with declarative processing.
Registers an event handler for the specified event.
Optional
useCapture: booleanSet to true to register the event handler for the capturing phase; otherwise, set to false to register the event handler for the bubbling phase.
Raises an event of the specified type and with additional properties.
true if preventDefault was called on the event, otherwise false.
The type (name) of the event.
The set of additional properties to be attached to the event object when the event is raised.
Raised immediately after a dialog is fully hidden.
An object that contains information about the event.
Raised just before hiding a dialog. Call preventDefault on this event to stop the dialog from being hidden.
An object that contains information about the event.
Removes an event handler that the addEventListener method registered.
Optional
useCapture: booleanSet to true to remove the capturing phase event handler; set to false to remove the bubbling phase event handler.
Shows the ContentDialog. Only one ContentDialog may be shown at a time. If another ContentDialog is already shown, this ContentDialog will remain hidden.
A promise which is successfully fulfilled when the dialog is dismissed. The completion value indicates the dialog's dismissal result. This may be 'primary', 'secondary', 'none', or whatever custom value was passed to hide. If this ContentDialog cannot be shown because a ContentDialog is already showing or the ContentDialog is disposed, then the return value is a promise which is in an error state. If preventDefault() is called on the beforeshow event, then this promise will be canceled.
Generated using TypeDoc
Displays a modal dialog which can display arbitrary HTML content.