/time-line

A webcomponent to display a timeline

Primary LanguageJavaScriptMIT LicenseMIT

time-line

A timeline webcomponent based on the CodyHouse vertical-timeline.

Disclaimer

As HTML Import is still not well implemented in browsers (and will perhaps never be...), this starter kit doesn't use this API. Instead, it's the JavaScript bundle that has to be loaded in the page to manage the WebComp. For the sack of separation of concern, at dev step, we still have the html and the CSS (SCSS) files, but they are loaded in the JS by Webpack.

Polyfill

To be supported crossbrowser, you'll need some polyfills that are commented out by default in the index.html file. Just remove the comments to use the polyfill in dev mode. If you need the polyfill for your application, you'll have to insert it manually with your other scripts.

Specify the extended tagname in the definition of the custom element like

customElements.define('my-component', MyComponent, {extends: 'input'});