Interface MDCMenuSurfaceAdapter
Methods
addClass
- addClass(className: string): void
focusFirstElement
- focusFirstElement(): void
getAnchorDimensions
- getAnchorDimensions(): ClientRect | null
-
Returns ClientRect
|
null
hasClass
- hasClass(className: string): boolean
-
Parameters
Returns boolean
isElementInContainer
- isElementInContainer(el: Element): boolean
-
Parameters
Returns boolean
isFirstElementFocused
- isFirstElementFocused(): boolean
isLastElementFocused
- isLastElementFocused(): boolean
removeClass
- removeClass(className: string): void
setMaxHeight
- setMaxHeight(height: string): void
setTransformOrigin
- setTransformOrigin(origin: string): void
Defines the shape of the adapter expected by the foundation. Implement this adapter for your framework of choice to delegate updates to the component in your framework of choice. See architecture documentation for more details. https://github.com/material-components/material-components-web/blob/master/docs/code/architecture.md