CaProductList
A list of product cards
SASS-path: ./styles/components/molecules/ca-product-list.scss
Props
Name | Description | Type | Required | Default |
---|---|---|---|---|
products | Array of products | Array | true | - |
pageSize | Current page size | Number | true | - |
skip | Current skip | Number | false | 0 |
productCardType | Type of product card, to be able to display slightly different product cards in different product lists | String | false | default |
productsFetched | Are the products fetched yet? | Boolean | false | false |
Methods
Method | Description | Parameters |
---|---|---|
getPageNumber | Calculates what page number each product card is associated with | index of product (Number) |