--- class: ember --- # ModalDialog ## Arguments | Argument | Type | Default | Description | | --- | --- | --- | --- | | `onopen` | `Function` | `undefined` | A function to call when the modal has opened | | `onclose` | `Function` | `undefined` | A function to call when the modal has closed | | `aria` | `Object` | `undefined` | A `hash` of aria properties used in the component, currently only label is supported | ## Exports | Name | Type | Description | | --- | --- | --- | | `open` | `Function` | Opens the modal dialog | | `close` | `Function` | Closes the modal dialog | Works in tandem with `` to render modals. First of all ensure you have a modal layer on the page (it doesn't have to be in the same template) ```hbs ``` Then all modals will be rendered into the `` for example: ```hbs preview-template {{did-insert (set this 'modal' modal)}}

Modal Header

Modal body

```