Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

docs(dialog): explain how to show multiple dialogs #9950

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion src/components/dialog/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,25 @@ function MdDialogDirective($$rAF, $mdTheming, $mdDialog) {
* })(angular);
* </hljs>
*
* ### Multiple Dialogs
* Using the `multiple` option for the `$mdDialog` service allows developers to show multiple dialogs
* at the same time.
*
* <hljs lang="js">
* // From plain options
* $mdDialog.show({
* multiple: true
* });
*
* // From a dialog preset
* $mdDialog.show(
* $mdDialog
* .alert()
* .multiple(true)
* );
*
* </hljs>
*
* ### Pre-Rendered Dialogs
* By using the `contentElement` option, it is possible to use an already existing element in the DOM.
*
Expand Down Expand Up @@ -565,7 +584,7 @@ function MdDialogProvider($$interimElementProvider) {
return $$interimElementProvider('$mdDialog')
.setDefaults({
methods: ['disableParentScroll', 'hasBackdrop', 'clickOutsideToClose', 'escapeToClose',
'targetEvent', 'closeTo', 'openFrom', 'parent', 'fullscreen'],
'targetEvent', 'closeTo', 'openFrom', 'parent', 'fullscreen', 'multiple'],
options: dialogDefaultOptions
})
.addPreset('alert', {
Expand Down