swipe-array

0.4.0 • Public • Published

<swipe-array>

Pipeline status Published on NPM

Element that render a template with a array in input

Install

Install with Yarn

Using Yarn

$ yarn add swipe-array

Install with NPM

Simple install

$ npm install swipe-array --save

Manual install

First, make sure you have Bower and Polymer CLI installed

$ npm install swipe-array --no-optional --save

Install 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 documentation 

Usage

<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 start

Running tests

To run tests, you must install NPM devDependencies

$ npm test

Licence

MIT

Package Sidebar

Install

npm i swipe-array

Weekly Downloads

13

Version

0.4.0

License

MIT

Last publish

Collaborators

  • pinage404