14.0.0 • Published 5 months ago

@material/dom v14.0.0

Weekly downloads
99,894
License
MIT
Repository
github
Last release
5 months ago

DOM

MDC DOM provides commonly-used utilities for inspecting, traversing, and manipulating the DOM.

Most of the time, you shouldn't need to depend on mdc-dom directly. It is useful however if you'd like to write custom components that follow MDC Web's pattern and elegantly integrate with the MDC Web ecosystem.

Installation

npm install @material/dom

Basic Usage

import * as ponyfill from '@material/dom/ponyfill';

See Importing the JS component for more information on how to import JavaScript.

Ponyfill Functions

The ponyfill module provides the following functions:

Function SignatureDescription
closest(element: Element, selector: string) => ?ElementReturns the ancestor of the given element matching the given selector (which may be the element itself if it matches), or null if no matching ancestor is found.
matches(element: Element, selector: string) => booleanReturns true if the given element matches the given CSS selector.
@material/icon-button@material/list@material/linear-progress@material/floating-label@material/drawer@material/dialog@material/fab@material/data-table@material/circular-progress@material/checkbox@material/button@material/card@material/chips@material/banner@material/menu@material/tab-scroller@material/select@material/tooltip@material/ripple@material/slider@material/textfield@material/snackbar@material/switch@material/radio@material/mwc-list@material/mwc-select@material/mwc-dialogmaterial-components-web@everything-registry/sub-chunk-584@labstack/data-table@lcap-ui/base@rmwc/base@smui/list@smui/menu@smui/ripple@smui/slider@smui/chips@smui/common@smui/data-table@smui/dialog@smui/drawer@smui/snackbar@smui/tab-scroller@smui/textfield@lucasecdb/rmdc@mcwv/checkbox@mcwv/chips@mcwv/data-table@mcwv/drawer@mcwv/menu@mcwv/radio@mcwv/ripple@mcwv/slider@mcwv/textfield@maicol07/mwa-card@maicol07/mwc-card@material/mwc-slider@material/mwc-ripple@material/react-tab-scroller@material/mwc-base@material/focus-ring@material/react-dialog@material/mwc-tab-scroller@material/react-list@material/react-ripple@leanup/material-core@react-universal-dialogs/android@xdam/ember-partials@tylertech/forge@pmwcs/basesvelte-arcadiaember-cli-mdc-domember-cli-mdc-fab@dev.mohe/mwc-tab-scroller@dev.mohe/mwc-base@dev.mohe/mwc-dialog@dev.mohe/mwc-list@dev.mohe/mwc-ripple@dev.mohe/mwc-select@dev.mohe/mwc-slidermaterial-toolbox@emuanalytics/flow-rdf@detachhead/smui-chips@detachhead/smui-common@detachhead/smui-data-table@detachhead/smui-dialog@detachhead/smui-list@detachhead/smui-menu@detachhead/smui-ripple@detachhead/smui-slider@detachhead/smui-snackbar@detachhead/smui-tab-scroller@detachhead/smui-textfield@detachhead/smui-drawer@dragndrop/draggable@dragndrop/dragndrop@dragndrop/dropzone@dragndrop/vue-draggable@dragndrop/vue-dropzone@infinitebrahmanuniverse/nolb-_mate
14.0.0

2 years ago

13.0.0

3 years ago

12.0.0

3 years ago

11.0.0

3 years ago

10.0.0

3 years ago

9.0.0

3 years ago

8.0.0

3 years ago

7.0.0

4 years ago

6.0.0

4 years ago

5.1.0

4 years ago

5.0.0

4 years ago

4.0.0

4 years ago

4.0.0-canary.1

5 years ago

4.0.0-canary.0

5 years ago

4.0.0-alpha.0

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

3.0.0-alpha.1

5 years ago

3.0.0-alpha.0

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

1.0.0-1

5 years ago

1.0.0-0

5 years ago

0.41.0

5 years ago

0.40.0

6 years ago