Package Exports
- dom-create-element-query-selector
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dom-create-element-query-selector) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
dom-create-element-query-selector
A utility function to create DOM elements with CSS selector-like syntax
Usage
import createElement from 'dom-create-element-query-selector';
Installation
Install via yarn
yarn add dom-create-element-query-selector (--dev)
or npm
npm install dom-create-element-query-selector (--save-dev)
configuration
You can pass in extra options as a configuration object (➕ required, ➖ optional, ✏️ default).
import createElement from 'dom-create-element-query-selector';
➖ property ( type ) ✏️ default
📝 description
❗️ warning
ℹ️ info
💡 example
methods
#name
createElement
Examples
See example
folder or the runkit example.
Builds
If you don't use a package manager, you can access dom-create-element-query-selector
via unpkg (CDN), download the source, or point your package manager to the url.
dom-create-element-query-selector
is compiled as a collection of CommonJS modules & [ES2015 modules](http://www.2ality.com/2014/0
-9/es6-modules-final.html) for bundlers that support the jsnext:main
or module
field in package.json (Rollup, Webpack 2)
The dom-create-element-query-selector
package includes precompiled production and development UMD builds in the dist
folder. They can be used directly without a bundler and are thus compatible with many popular JavaScript module loaders and environments. You can drop a UMD build as a <script>
tag on your page. The UMD builds make dom-create-element-query-selector
available as a window.createElement
global variable.
License
The code is available under the MIT license.
Contributing
We are open to contributions, see CONTRIBUTING.md for more info.
Misc
This module was created using generator-module-boilerplate.