Adds the given className to the root element.
The className to add
Adds the given className to the scroll area element.
The className to add
Returns the height of the browser's horizontal scrollbars (in px).
Returns the bounding client rect of the scroll area element.
Returns the bounding client rect of the scroll content element.
Returns whether the event target matches given className.
The event target
The selector to check
Returns the offsetWitdth of the scroll area element.
Returns the scrollLeft value of the scroll area element.
Returns the offsetWidth of the scroll content element.
Returns the scroll content element's computed style value of the given css property propertyName
.
We achieve this via getComputedStyle(...).getPropertyValue(propertyName)
.
Removes the given className from the root element.
The className to remove
Sets the scrollLeft value of the scroll area element to the passed value.
The new scrollLeft value
Sets a style property of the area element to the passed value.
The style property name to set
The style property value
Sets a style property of the content element to the passed value.
The style property name to set
The style property value
Generated using TypeDoc
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