Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MDCTabAdapter

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

  • MDCTabAdapter

Index

Methods

activateIndicator

  • activateIndicator(previousIndicatorClientRect?: ClientRect): void
  • Activates the indicator element.

    Parameters

    • Optional previousIndicatorClientRect: ClientRect

      The client rect of the previously activated indicator

    Returns void

addClass

  • addClass(className: string): void
  • Adds the given className to the root element.

    Parameters

    • className: string

      The className to add

    Returns void

deactivateIndicator

  • deactivateIndicator(): void

focus

  • focus(): void

getContentOffsetLeft

  • getContentOffsetLeft(): number

getContentOffsetWidth

  • getContentOffsetWidth(): number

getOffsetLeft

  • getOffsetLeft(): number

getOffsetWidth

  • getOffsetWidth(): number

hasClass

  • hasClass(className: string): boolean
  • Returns whether the root element has the given className.

    Parameters

    • className: string

      The className to remove

    Returns boolean

notifyInteracted

  • notifyInteracted(): void
  • Emits the MDCTab:interacted event for use by parent components

    Returns void

removeClass

  • removeClass(className: string): void
  • Removes the given className from the root element.

    Parameters

    • className: string

      The className to remove

    Returns void

setAttr

  • setAttr(attr: string, value: string): void
  • Sets the given attrName of the root element to the given value.

    Parameters

    • attr: string

      The attribute name to set

    • value: string

      The value so give the attribute

    Returns void

Generated using TypeDoc