Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MDCMenuSurfaceAdapter

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

Hierarchy

  • MDCMenuSurfaceAdapter

Index

Methods

addClass

  • addClass(className: string): void

focusFirstElement

  • focusFirstElement(): void

focusLastElement

  • focusLastElement(): void

getAnchorDimensions

  • getAnchorDimensions(): ClientRect | null

getBodyDimensions

getInnerDimensions

getWindowDimensions

getWindowScroll

hasAnchor

  • hasAnchor(): boolean

hasClass

  • hasClass(className: string): boolean

isElementInContainer

  • isElementInContainer(el: Element): boolean

isFirstElementFocused

  • isFirstElementFocused(): boolean

isFocused

  • isFocused(): boolean

isLastElementFocused

  • isLastElementFocused(): boolean

isRtl

  • isRtl(): boolean

notifyClose

  • notifyClose(): void

notifyOpen

  • notifyOpen(): void

removeClass

  • removeClass(className: string): void

restoreFocus

  • restoreFocus(): void

saveFocus

  • saveFocus(): void

setMaxHeight

  • setMaxHeight(height: string): void

setPosition

setTransformOrigin

  • setTransformOrigin(origin: string): void

Generated using TypeDoc