Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MDCSliderAdapter

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

  • MDCSliderAdapter

Index

Methods

addClass

  • addClass(className: string): void

appendTrackMarkers

  • appendTrackMarkers(numMarkers: number): void
  • Appends the passed number of track markers to the track mark container element

    Parameters

    • numMarkers: number

    Returns void

computeBoundingRect

  • computeBoundingRect(): ClientRect

deregisterBodyInteractionHandler

deregisterInteractionHandler

deregisterResizeHandler

deregisterThumbContainerInteractionHandler

getAttribute

  • getAttribute(name: string): string | null
  • Returns a string if attribute name exists on the slider Element, otherwise returns null

    Parameters

    • name: string

    Returns string | null

getTabIndex

  • getTabIndex(): number

hasClass

  • hasClass(className: string): boolean
  • Returns true if className exists for the slider Element

    Parameters

    • className: string

    Returns boolean

isRTL

  • isRTL(): boolean

notifyChange

  • notifyChange(): void

notifyInput

  • notifyInput(): void

registerBodyInteractionHandler

registerInteractionHandler

registerResizeHandler

registerThumbContainerInteractionHandler

removeAttribute

  • removeAttribute(name: string): void

removeClass

  • removeClass(className: string): void

removeTrackMarkers

  • removeTrackMarkers(): void

setAttribute

  • setAttribute(name: string, value: string): void
  • Sets attribute name on slider Element to value

    Parameters

    • name: string
    • value: string

    Returns void

setLastTrackMarkersStyleProperty

  • setLastTrackMarkersStyleProperty(propertyName: string, value: string): void
  • Sets a style property of the last track marker to the passed value

    Parameters

    • propertyName: string
    • value: string

    Returns void

setMarkerValue

  • setMarkerValue(value: number): void
  • Sets the inner text of the pin marker to the passed value

    Parameters

    • value: number

    Returns void

setThumbContainerStyleProperty

  • setThumbContainerStyleProperty(propertyName: string, value: string): void
  • Sets a style property of the thumb container element to the passed value

    Parameters

    • propertyName: string
    • value: string

    Returns void

setTrackStyleProperty

  • setTrackStyleProperty(propertyName: string, value: string): void
  • Sets a style property of the track element to the passed value

    Parameters

    • propertyName: string
    • value: string

    Returns void

Generated using TypeDoc