simpla-demo-helper

Sets up a demo environment for Simpla element demos


Keywords
web-component, polymer, simpla-demo-helper, custom-elements, demos, simpla, web-components
License
MIT
Install
bower install simpla-demo-helper

Documentation

Simpla Demo Helper

Version Build status Bower dependencies Size Published

Simpla-demo-helper sets up an environment for Simpla element demos. It imports Simpla, sets up a dummy project, and adds an edit mode toggle control to the page.

<simpla-demo-helper></simpla-demo-helper>

<!-- Element demo -->
<simpla-text path="/example"></simpla-text>

Installation & usage

Install simpla-demo-helper with Bower (Yarn support coming soon)

$ bower install simpla-demo-helper --save-dev

Import it into the <head> of your element demo page

<link rel="import" href="../../simpla-demo-helper/simpla-demo-helper.html">

Then use the element at the top of your page. It will include and setup Simpla for you, and an edit mode toggle control will be available where the element is used.

<simpla-demo-helper></simpla-demo-helper>

MIT © Simpla