1.1.2 • Published 7 years ago

@cnbritain/wc-show-item-carousel v1.1.2

Weekly downloads
5
License
ISC
Repository
github
Last release
7 years ago

wc-show-item-carousel

A carousel that display a list of items

Macro settings

show_item_carousel

KeyOptionalDefaultDescription
itemsfalseThe list of items to display in the carousel
titletrueNoneCan be a string or a list of strings
brandtrue'default'The brand displaying the component
item_clstrue''Additional classes to put on the list item

show_item_carousel_item

KeyOptionalDefaultDescription
itemfalseThe item to display
clstrue''Additional class for the list item
brandtrue'default'The brand displaying the component

show_item_carousel_card

KeyOptionalDefaultDescription
showfalseThe show to display in a card
brandtrue'default'The brand displaying the component

JS Documentation

ShowItemCarousel

Kind: global class

new ShowItemCarousel(el, _options)

Show Item carousel

ParamType
elHTMLElement
_optionsObject

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

ParamType
xNumber

Themes

  • Vogue

Prerequisites:

  • Node.jsbrew 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