We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 95c2507 + 6abf30d commit 6481696Copy full SHA for 6481696
current/en-us/7. plugins/5. dialog.md
@@ -411,3 +411,18 @@ Each dialog instance goes through the full lifecycle once.
411
8. `.deactivate()` - `aurelia-dialog` *specific*
412
9. `.detached()` - as defined by `aurelia-templating`
413
10. `.unbind()` - as defined by `aurelia-templating`
414
+
415
+### Native dialogs
416
417
+The plugin allows to use native browser `<dialog>` element [MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement)
418
+One can switch to `NativeDialogRenderer` as such:
419
420
+```JavaScript main.js
421
+import { NativeDialogRenderer } from 'aurelia-dialog';
422
423
+aurelia.use.plugin('aurelia-dialog', (config) => {
424
+ config.useDefaults();
425
+ config.useRenderer(NativeDialogRenderer)
426
+})
427
+```
428
0 commit comments