0.4.0 • Published 7 years ago

swipe-array v0.4.0

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
7 years ago

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