<juicy-tile-editor>
is a Polymer Element that adds an editor to control the setup of <juicy-tile-list>
and <juicy-tile-grid>
-
Install the component using Bower:
$ bower install Juicy/juicy-tile-editor --save
-
Import Web Components' polyfill, if needed:
<script src="bower_components/webcomponentsjs/webcomponents.js"></script>
-
Import Custom Element:
<link rel="import" href="bower_components/juicy-tile-table/juicy-tile-table.html"> <link rel="import" href="bower_components/juicy-tile-editor/src/juicy-tile-editor.html">
-
Start using it!
<juicy-tile-editor selectionMode></juicy-tile-editor> <juicy-tile-table></juicy-tile-table>
Attribute | Options | Default | Description |
---|---|---|---|
selectionMode |
Boolean | If present, the editor starts in selection mode |
Event | Description |
---|---|
juicy-tile-editor-save |
Triggers when configuration of any <juicy-tile-list> is saved. |
juicy-tile-editor-revert |
Triggers when configuration of any <juicy-tile-list> is reverted. |
juicy-tile-editor-clear |
Triggers when configuration of any <juicy-tile-list> is cleared. |
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
In order to develop it locally we suggest to use polyserve tool to handle bower paths gently.
- Install bower & polyserve:
$ npm install -g bower polyserve
- Install local dependencies:
$ bower install
- Start development server
$ polyserve
and openhttp://localhost:8080/components/juicy-element/
.
MIT