0.4.0 • Published 8 years ago
swipe-array v0.4.0
\<swipe-array>
Element that render a template with a array in input
Install
Install with Yarn
Using Yarn
$ yarn add swipe-arrayInstall with NPM
Simple install
$ npm install swipe-array --saveManual install
First, make sure you have Bower and Polymer CLI installed
$ npm install swipe-array --no-optional --saveInstall with Bower
First, make sure you have Bower and Polymer CLI installed
$ npm install fixed-size-circular-array --save
$ bower install swipe-array --save
$ npm run-script analyze # if you need to watch the documentationUsage
<swipe-array> need an array by filling items attribute and a <template> to know how to render element
<swipe-array
turn
swipeable
items='[ "royalblue", "darkgreen", "purple", "mediumslateblue", "maroon" ]'
>
<template>
<div style="background-color: [[item]];">[[item]]</div>
</template>
</swipe-array>Viewing element
$ npm startRunning tests
To run tests, you must install NPM devDependencies
$ npm test