A bare minimum custom element starter-kit using VanillaJS.
Looking for a working example? Check hello-world-element.
Install the component using Bower:
$ bower install juicy-element --save
Or download as ZIP.
-
Import polyfill:
<script src="bower_components/webcomponentsjs/webcomponent-lite.js"></script>
-
Import custom element:
<link rel="import" href="bower_components/juicy-element/juicy-element.html">
-
Start using it!
<juicy-element></juicy-element>
Attribute | Options | Default | Description |
---|---|---|---|
foo |
string | bar |
Lorem ipsum dolor. |
Method | Parameters | Returns | Description |
---|---|---|---|
unicorn() |
None. | Nothing. | Magic stuff appears. |
Event | Description |
---|---|
onsomething |
Triggers when something happens. |
Name | Description |
---|---|
--juicy-element-laser-color |
Color of the shooted lasers. |
For detailed changelog, check Releases.
MIT