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.
Copy file name to clipboardExpand all lines: packages/mdc-drawer/README.md
+2
Original file line number
Diff line number
Diff line change
@@ -402,6 +402,8 @@ The adapter for temporary drawers must provide the following functions, with cor
402
402
|`addClass(className: string) => void`| Adds a class to the root element. |
403
403
|`removeClass(className: string) => void`| Removes a class from the root element. |
404
404
|`hasClass(className: string) => boolean`| Returns boolean indicating whether element has a given class. |
405
+
|`addBodyClass(className: string) => void`| Adds a class to the body. |
406
+
|`removeBodyClass(className: string) => void`| Removes a class from the body. |
405
407
|`hasNecessaryDom() => boolean`| Returns boolean indicating whether the necessary DOM is present (namely, the `mdc-temporary-drawer__drawer` drawer container). |
406
408
|`registerInteractionHandler(evt: string, handler: EventListener) => void`| Adds an event listener to the root element, for the specified event name. |
407
409
|`deregisterInteractionHandler(evt: string, handler: EventListener) => void`| Removes an event listener from the root element, for the specified event name. |
0 commit comments