You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+73-1Lines changed: 73 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,10 @@
1
1
# Vue A11yDialog
2
2
3
-
This is a Vue.js wrapper component for [`a11y-dialog@5.2.0`](https://github.com/edenspiekermann/a11y-dialog) ([**demo**](https://codesandbox.io/s/rj20wr1kpp)) using [PortalVue](https://github.com/LinusBorg/portal-vue).
3
+
This is a Vue.js wrapper component for [`a11y-dialog@5.2.0`](https://github.com/edenspiekermann/a11y-dialog) ([**demo**](https://codesandbox.io/s/rj20wr1kpp)) using [PortalVue@2.1.0](https://github.com/LinusBorg/portal-vue).
4
4
5
5
-[Install](#install)
6
6
-[Usage](#usage)
7
+
-[Multiple dialogs](#multiple-dialogs)
7
8
-[API](#api)
8
9
-[Events](#events)
9
10
-[Slots](#slots)
@@ -105,11 +106,72 @@ export default {
105
106
}
106
107
```
107
108
109
+
### Multiple dialogs
110
+
111
+
It's possible to use multiple dialogs in the same component, just make sure to assign the different `dialog` instances separately.
- **Returns**: An `a11y-dialog` instance or `undefined`.
216
286
- **Description**: This event emits the `a11y-dialog` instance once the component has been initialised. When it gets `destroyed`, the event returns `undefined`. This is needed to call instance methods of the dialog, e.g. `this.dialog.show()`.
217
287
- **Usage**:
@@ -234,6 +304,7 @@ export default {
234
304
## Slots
235
305
236
306
### `title`
307
+
237
308
- **Name**: `title`
238
309
- **Description**: The title of the dialog, mandatory in the document to provide context to assistive technology. Could be [hidden with CSS](https://hugogiraudel.com/2016/10/13/css-hide-and-seek/) (while remaining accessible).
239
310
- **Usage**:
@@ -247,6 +318,7 @@ export default {
247
318
```
248
319
249
320
### `closeButtonContent`
321
+
250
322
- **Name**: `closeButtonLabel`
251
323
- **Default**: `\u00D7` (×)
252
324
- **Description**: The string that is the inner HTML of the close button.
0 commit comments