Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

  • MDCRippleCapableSurface

Index

Constructors

constructor

  • Parameters

    • root: Element
    • Optional foundation: FoundationType
    • Rest ...args: Array<unknown>

    Returns MDCTab

Properties

Protected foundation_

foundation_: MDCTabFoundation

id

id: string

root_

root_: HTMLElement

Accessors

active

  • get active(): boolean

focusOnActivate

  • set focusOnActivate(focusOnActivate: boolean): void

Methods

activate

  • activate(computeIndicatorClientRect?: ClientRect): void
  • Activates the tab

    Parameters

    • Optional computeIndicatorClientRect: ClientRect

    Returns void

computeDimensions

computeIndicatorClientRect

  • computeIndicatorClientRect(): ClientRect

deactivate

  • deactivate(): void

destroy

  • destroy(): void

emit

  • emit<T>(evtType: string, evtData: T, shouldBubble?: boolean): void
  • Fires a cross-browser-compatible custom event from the component root of the given type, with the given data.

    Type parameters

    • T: object

    Parameters

    • evtType: string
    • evtData: T
    • Default value shouldBubble: boolean = false

    Returns void

focus

  • focus(): void

getDefaultFoundation

initialSyncWithDOM

  • initialSyncWithDOM(): void

initialize

listen

  • Wrapper method to add an event listener to the component's root element. This is most useful when listening for custom events.

    Type parameters

    Parameters

    Returns void

  • Type parameters

    • E: Event

    Parameters

    Returns void

unlisten

  • Wrapper method to remove an event listener to the component's root element. This is most useful when unlistening for custom events.

    Type parameters

    Parameters

    Returns void

  • Type parameters

    • E: Event

    Parameters

    Returns void

Static attachTo

  • attachTo(root: Element): MDCTab

Generated using TypeDoc