Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MDCDrawerAdapter

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

  • MDCDrawerAdapter

Index

Methods

addClass

  • addClass(className: string): void

elementHasClass

  • elementHasClass(element: Element, className: string): boolean
  • Parameters

    • element: Element

      target element to verify class name

    • className: string

      class name

    Returns boolean

focusActiveNavigationItem

  • focusActiveNavigationItem(): void

hasClass

  • hasClass(className: string): boolean
  • Returns true if the root Element contains the given class.

    Parameters

    • className: string

    Returns boolean

notifyClose

  • notifyClose(): void
  • Emits a custom event "MDCDrawer:closed" denoting the drawer has closed.

    Returns void

notifyOpen

  • notifyOpen(): void
  • Emits a custom event "MDCDrawer:opened" denoting the drawer has opened.

    Returns void

releaseFocus

  • releaseFocus(): void
  • Releases focus trap from root element which was set by trapFocus and restores focus to where it was prior to calling trapFocus.

    Returns void

removeClass

  • removeClass(className: string): void

restoreFocus

  • restoreFocus(): void

saveFocus

  • saveFocus(): void

trapFocus

  • trapFocus(): void
  • Traps focus on root element and focuses the active navigation element.

    Returns void

Generated using TypeDoc