Components

AddToCartForm

<AddToCartForm />

Constructor

# <AddToCartForm />

A form for adding new products to the cart

See:

View Source components/Forms/AddToCartForm/AddToCartForm.js, line 26

add to cart form

jsx

Methods

# inner renderInputs() → {jsx}

Rendering all needed inputs

View Source components/Forms/AddToCartForm/AddToCartForm.js, line 123

inputs

jsx

# inner submitHandler(event)

Submit handler

Parameters:
Name Type Description
event object

View Source components/Forms/AddToCartForm/AddToCartForm.js, line 35

# inner validateControl(value, validation) → {boolean}

Validating inputs according to required rules

Parameters:
Name Type Description
value any

input value

validation object

validation rules for current input

See:

View Source components/Forms/AddToCartForm/formHelpers.js, line 54

valid status

boolean