4.0.0 • Published 7 years ago
dominate-io-dom v4.0.0
Dominate-Io-Dom
Dominate IO support for jQuery objects
Dominate-Io-Dom facilitates the filtering of DOM objects through the Dominate filtering framework. The InputNode accepts a jQuery object containing the DOM-element parent of the objects to be filtered. All the child elements are detached from the DOM and passed through the filter chain. The elements which make it through are reattached to their parent by the OutputNode. The other children caught by the filter chain are not deleted, and will be reattached to the DOM at a later point if the filters let them through.
API
import {
InputNode,
OutputNode
} from 'dominate-io-dom';
let inputNode = new InputNode(jQueryObject);
let outputNode = new OutputNode(jQueryObject);
Creates a new instance of the input node and the output node. jQueryObject
is a jQuery object containing a single parent element whose children will be filtered.