Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MDCSelectAdapter

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

  • MDCSelectAdapter

Index

Methods

activateBottomLine

  • activateBottomLine(): void

addClass

  • addClass(className: string): void

checkValidity

  • checkValidity(): boolean

closeMenu

  • closeMenu(): void

closeOutline

  • closeOutline(): void

deactivateBottomLine

  • deactivateBottomLine(): void

floatLabel

  • floatLabel(shouldFloat: boolean): void
  • Floats label determined based off of the shouldFloat argument.

    Parameters

    • shouldFloat: boolean

    Returns void

getLabelWidth

  • getLabelWidth(): number

getValue

  • getValue(): string

hasClass

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

    Parameters

    • className: string

    Returns boolean

hasOutline

  • hasOutline(): boolean

isMenuOpen

  • isMenuOpen(): boolean

notchOutline

  • notchOutline(labelWidth: number): void
  • Only implement if outline element exists.

    Parameters

    • labelWidth: number

    Returns void

notifyChange

  • notifyChange(value: string): void
  • Emits a change event when an element is selected.

    Parameters

    • value: string

    Returns void

openMenu

  • openMenu(): void

removeClass

  • removeClass(className: string): void

setDisabled

  • setDisabled(isDisabled: boolean): void

setRippleCenter

  • setRippleCenter(normalizedX: number): void
  • Sets the line ripple transform origin center.

    Parameters

    • normalizedX: number

    Returns void

setSelectedIndex

  • setSelectedIndex(index: number): void
  • Sets the selected index of the select to the index provided.

    Parameters

    • index: number

    Returns void

setValid

  • setValid(isValid: boolean): void

setValue

  • setValue(value: string): void

Generated using TypeDoc