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
| `open` | `boolean` | Whether the dialog should open.
294
+
| `hideActions`| `boolean` | Hides the actions footer of the dialog. Needed to remove excess padding when no actions are slotted in.
295
+
| `stacked`| `boolean` | Whether to stack the action buttons.
296
+
| `heading`| `string` | Heading text of the dialog.
297
+
| `scrimClickAction`| `string` | _Default: 'close'_ – Action to be emitted with the `closing` and `closed` events when the dialog closes because the scrim was clicked (see [actions section](#actions)).
298
+
| `escapeKeyAction` | `string` | _Default: 'close'_ – Action to be emitted with the `closing`and `closed` events when the dialog closes because the excape key was pressed (see [actions section](#actions)).
299
+
| `defaultAction`| `string` | _Default: 'close'_ – Action to be emitted with the `closing` and `closed` events when `<mwc-dialog>.open` is toggled (see [actions section](#actions)).
300
+
| `actionAttribute`| `string` | _Default: 'dialogAction'_ – Attribute to read in light dom of dialog for closing action value (see [actions section](#actions)).
301
+
| `initialFocusAttribute` | `string` | _Default: 'dialogInitialFocus'_ – Attribute to search for in light dom for initial focus on dialog open.
| `open` | `boolean` | Whether the dialog should open.
308
+
| `hideActions` | `boolean` | Hides the actions footer of the dialog. Needed to remove excess padding when no actions are slotted in.
309
+
| `stacked` | `boolean` | Whether to stack the action buttons.
310
+
| `heading` | `string` | Heading text of the dialog.
311
+
| `scrimClickAction` | `string` | _Default: 'close'_ – Action to be emitted with the `closing` and `closed` events when the dialog closes because the scrim was clicked (see [actions section](#actions)). Setting this attribute to an empty string `""` will prevent clicks outside the dialog from closing the dialog.
312
+
| `escapeKeyAction` | `string` | _Default: 'close'_ – Action to be emitted with the `closing` and `closed` events when the dialog closes because the escape key was pressed (see [actions section](#actions)). Setting this attribute to an empty string `""` will prevent the escape key from closing the dialog.
313
+
| `defaultAction` | `string` | _Default: 'close'_ – Action to be emitted with the `closing` and `closed` events when `<mwc-dialog>.open` is toggled (see [actions section](#actions)).
314
+
| `actionAttribute` | `string` | _Default: 'dialogAction'_ – Attribute to read in light dom of dialog for closing action value (see [actions section](#actions)).
315
+
| `initialFocusAttribute` | `string` | _Default: 'dialogInitialFocus'_ – Attribute to search for in light dom for initial focus on dialog open.
: : May be required if dialog size is incorrect or if :
349
-
: : stacked layout has not been triggered correctly. :
350
-
|`focus() => void`| Focuses on the initial focus element if defined |
351
-
: : (see [focus section](#focus)). :
352
-
|`blur() => void`| Blurs the active element. |
353
-
|`show() => void`| Opens the dialog. |
354
-
|`close() => void`| Closes the dialog. |
319
+
| Name | Description
320
+
| -------- | -------------
321
+
| `forceLayout() => void` | Forces dialog to relayout (animation frame time). May be required if dialog size is incorrect or if stacked layout has not been triggered correctly.
322
+
| `focus() => void` | Focuses on the initial focus element if defined (see [focus section](#focus)).
| `opening` | `mwc-dialog` | `{}` | Fired when the dialog is beginning to open.
341
+
| `opened` | `mwc-dialog` | `{}` | Fired once the dialog is finished opening (after animation).
342
+
| `closing` | `mwc-dialog` | `{action: string}` | Fired when the dialog is is beginning to close. Detail is the action that closed the dialog (see [actions section](#actions)).
343
+
| `closed` | `mwc-dialog` | `{action: string}` | Fired once the dialog is finished closing (after animation). Detail is the action that closed the dialog (see [actions section](#actions)).
0 commit comments