npm.io
1.1.2 • Published 9 years ago

@cnbritain/wc-show-item-carousel

Licence
ISC
Version
1.1.2
Deps
6
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

A carousel that display a list of items

Macro settings

Key Optional Default Description
items false The list of items to display in the carousel
title true None Can be a string or a list of strings
brand true 'default' The brand displaying the component
item_cls true '' Additional classes to put on the list item
Key Optional Default Description
item false The item to display
cls true '' Additional class for the list item
brand true 'default' The brand displaying the component
Key Optional Default Description
show false The show to display in a card
brand true 'default' The brand displaying the component

JS Documentation

ShowItemCarousel

Kind: global class

new ShowItemCarousel(el, _options)

Show Item carousel

Param Type
el HTMLElement
_options Object

showItemCarousel.nextItems()

Display the next items in the list

Kind: instance method of ShowItemCarousel

showItemCarousel.previousItems()

Displays the previous items in the list

Kind: instance method of ShowItemCarousel

showItemCarousel.scrollTo(x)

Scrolls the element to x position

Kind: instance method of ShowItemCarousel

Param Type
x Number

Themes

  • Vogue

Prerequisites:

  • Node.js — brew install node
  • Grunt - npm install -g grunt-cli
  • Other prereqs? Python? Virtualenv?

Demo:

Install dependencies:

npm install

Build the things:

npm run sass
npm run js
npm run docs

Hint your JS

npm run jshint

Python the pythons:

npm run demo-install

Start the demo server:

python demo.py