Products

Products

Class representing the Products React component

Constructor

new Products()

PropTypes for Product React component

Source:
Properties:
Name Type Description
canLoadMoreProducts Boolean

Are there more products to load?

isProductsSubscriptionReady Boolean

Products subscription is ready?

isReady Boolean

Data is ready?

loadProducts function

Load products callback

products Array

Array of products

showNotFound Boolean

Force show not-found view

Members

(protected) handleClick

Handle load more button click

.

Source:

Handle load more button click

hasProducts

Checks and returns a Boolean if the products array from props is not empty.

Source:

Checks and returns a Boolean if the products array from props is not empty.

Methods

(protected) render() → {Node}

Render component

.

Source:

Render component

Returns:

React node containing elements that make up the Products component.

Type
Node

(protected) renderLoadMoreProductsButton() → {Node|undefined}

Render load more button

.

Source:

Render load more button

Returns:

React node containing a load more button or undefined.

Type
Node | undefined

(protected) renderNotFound() → {Node}

Render the not found component

.

Source:

Render the not found component

Returns:

React node containing the NotFound component.

Type
Node

(protected) renderProductGrid() → {Node}

Render product grid

.

Source:

Render product grid

Returns:

React node containing the ProductGrid component.

Type
Node