<ceb/> is a library helping to develop Custom Elements (v0).
Its core is a builder which executes others builders.
By this way,
<ceb/> is natively opened to extensions and builders easily sharable.
<ceb/> exposes builders and helpers handling the common needs:
- delegation to child element (attribute, property and method)
- event dispatching
- type checking
A ceb's playground is available showing how-to build simple and more complex Custom Elements.
;// create a fresh element builderlet builder = ;builder;builder;// build and register the custom elementlet CebExample = builder;// export the class of the custom element;
// create an instance of ceb-examplelet cebExample = document;// by default foo is 0console // => 0cebExample;console // => now it's: 1cebExample;console // => and finally: 3cebExample; // => dispatch the custom event 'bar' with the detail 'foo'
npm install ceb
bower install ceb
<ceb/> can also be fetched from a unpkg, a CDN:
Released under the MIT license.