Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MDCSwitchAdapter

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

  • MDCSwitchAdapter

Index

Methods

addClass

  • addClass(className: string): void

removeClass

  • removeClass(className: string): void
  • Removes a CSS class from the root element.

    Parameters

    • className: string

    Returns void

setNativeControlChecked

  • setNativeControlChecked(checked: boolean): void
  • Sets checked state of the native HTML control underlying the switch.

    Parameters

    • checked: boolean

    Returns void

setNativeControlDisabled

  • setNativeControlDisabled(disabled: boolean): void
  • Sets the disabled state of the native HTML control underlying the switch.

    Parameters

    • disabled: boolean

    Returns void

Generated using TypeDoc