3.3.14 • Published 7 years ago

@cnbritain/wc-card-list v3.3.14

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

wc-card-list

Displays a list of of items (meant to be cards)

Macro Settings

KeyOptionalDefaultDescription
itemsfalseList of items to iterate over
colstrue2, 4Number of columns you want to the list to switch between
classtrue''Additional classes applied to .c-card-list

JS Documentation

CardList

CardList.init()

Initialises the cards in the list

Kind: static method of CardList

CardList~CardList

Kind: inner class of CardList

new CardList(el)

ParamTypeDescription
elHTMLElementThe card list

CardList~LISTENER_REGISTERED : Boolean

AdManager register listener boolean

Kind: inner property of CardList

CardList~cardListList : Array

List of CardLists

Kind: inner property of CardList

CardList~CLS_LIST : String

Card list css class

Kind: inner constant of CardList

CardList~CLS_ITEM : String

Card list item css class

Kind: inner constant of CardList

CardList~CLS_AD : String

Card list ad css class

Kind: inner constant of CardList

CardList~bindAdManagerListener()

Binds listeners to AdManager register event

Kind: inner method of CardList

CardList~getAdFromList(list, ad) ⇒ Number

Finds the ad in the list

Kind: inner method of CardList
Returns: Number - The index

ParamType
listArray.<Ad>
adAd

CardList~hasAdSlot(el) ⇒ Boolean

Checks if the element contains ad element

Kind: inner method of CardList

ParamType
elHTMLElement

CardList~isInitialised(el) ⇒ Boolean

Checks if the element is initialised

Kind: inner method of CardList

ParamType
elHTMLElement

CardList~onAdRenderStop(e)

Callback for when an Ad fires render or stop

Kind: inner method of CardList

ParamType
eObject

CardList~onManagerRegister(e)

Callback for when the AdManager emits a register event

Kind: inner method of CardList

ParamType
eObject

CardList~setInitialised(el)

Sets the card list element to initialised

Kind: inner method of CardList

ParamType
elHTMLElement

CardList~toArray(collection) ⇒ Array

Converts a collection to an array

Kind: inner method of CardList

ParamType
collection*

CardList~unbindAdManagerListener()

Unbinds the AdManager register listener

Kind: inner method of CardList

CardList~CardList

Kind: inner class of CardList

new CardList(el)

ParamTypeDescription
elHTMLElementThe card list

Current themes

  • Wired
  • Glamour

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

Python the pythons:

cd demo
virtualenv .
source bin/activate
pip install -r requirements.txt

Start the demo server:

python demo.py
3.3.14

7 years ago

3.3.13

7 years ago

3.3.12

7 years ago

3.3.11

7 years ago

3.3.10

7 years ago

3.3.9

7 years ago

3.3.8

7 years ago

3.3.7

7 years ago

3.3.6

7 years ago

3.3.5

7 years ago

3.3.4

7 years ago

3.3.3

7 years ago

3.3.2

7 years ago

3.3.1

8 years ago

3.3.0

8 years ago

3.2.0

8 years ago

3.1.5

8 years ago

3.1.4

8 years ago

3.1.3

8 years ago

3.1.2

8 years ago

3.1.1

8 years ago

3.1.0

8 years ago

3.0.2

8 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.4.7

8 years ago

2.4.6

8 years ago

2.4.5

8 years ago

2.4.4

8 years ago

2.4.3

8 years ago

2.4.2

8 years ago

2.4.1

8 years ago

2.4.0

8 years ago

2.3.7

8 years ago

2.3.6

8 years ago

2.3.5

8 years ago

2.3.4

8 years ago

2.3.3

8 years ago

2.3.2

8 years ago

2.3.1

8 years ago

2.3.0

8 years ago

2.2.11

8 years ago

2.2.10

8 years ago

2.2.9

8 years ago

2.2.8

8 years ago

2.2.7

8 years ago

2.2.6

8 years ago

2.2.5

8 years ago

2.2.4

8 years ago

2.2.3

8 years ago

2.2.2

8 years ago

2.2.1

8 years ago

2.2.0

8 years ago

2.1.0

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.7.1

8 years ago

1.7.0

8 years ago

1.6.0

8 years ago

1.5.1

8 years ago

1.5.0

8 years ago

1.4.0

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago