Skip to content

Commit 6481696

Browse files
authored
Merge pull request #486 from Alexander-Taran/patch-1
fix(docs) mention NativeDialogRenderer
2 parents 95c2507 + 6abf30d commit 6481696

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

current/en-us/7. plugins/5. dialog.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,3 +411,18 @@ Each dialog instance goes through the full lifecycle once.
411411
8. `.deactivate()` - `aurelia-dialog` *specific*
412412
9. `.detached()` - as defined by `aurelia-templating`
413413
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

Comments
 (0)