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
{{ message }}
This repository was archived by the owner on Jan 13, 2025. It is now read-only.
Once you have obtained an MDCSnackbar instance attached to the DOM, you can use
@@ -203,6 +202,12 @@ The adapter for snackbars must provide the following functions, with correct sig
203
202
|`setActionText(actionText: string) => void`| Set the text content of the action element. |
204
203
|`setActionAriaHidden() => void`| Sets `aria-hidden="true"` on the action element. |
205
204
|`unsetActionAriaHidden() => void`| Removes the `aria-hidden` attribute from the action element. |
205
+
|`registerFocusHandler(handler: EventListener) => void`| Registers an event handler to be called when a `focus` event is triggered on the `body`|
206
+
|`deregisterFocusHandler(handler: EventListener) => void`| Deregisters a `focus` event handler from the `body`|
207
+
|`registerBlurHandler(handler: EventListener) => void`| Registers an event handler to be called when a `blur` event is triggered on the action button |
208
+
|`deregisterBlurHandler(handler: EventListener) => void`| Deregisters a `blur` event handler from the actionButton |
209
+
|`registerVisibilityChangeHandler(handler: EventListener) => void`| Registers an event handler to be called when a 'visibilitychange' event occurs |
210
+
|`deregisterVisibilityChangeHandler(handler: EventListener) => void`| Deregisters an event handler to be called when a 'visibilitychange' event occurs |
206
211
|`registerActionClickHandler(handler: EventListener) => void`| Registers an event handler to be called when a `click` event is triggered on the action element. |
207
212
|`deregisterActionClickHandler(handler: EventListener) => void`| Deregisters an event handler from a `click` event on the action element. This will only be called with handlers that have previously been passed to `registerActionClickHandler` calls. |
208
213
|`registerTransitionEndHandler(handler: EventListener) => void`| Registers an event handler to be called when an `transitionend` event is triggered on the root element. Note that you must account for vendor prefixes in order for this to work correctly. |
0 commit comments