Search
Preparing search index...
The search index is not available
shopperman api docs
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
ProductDisplay
Class ProductDisplay<S, S>
Type parameters
S
S
Hierarchy
Component
<
ProductDisplayProps
>
ProductDisplay
Index
Constructors
constructor
Properties
base
context
props
state
default
Props
display
Name
Accessors
cart
Item
in
Cart
Methods
force
Update
render
set
State
component
Did
Mount
component
Did
Update
component
Will
Mount
component
Will
Receive
Props
component
Will
Unmount
component
Will
Update
get
Child
Context
should
Component
Update
Constructors
constructor
new
Product
Display
(
props
?:
ProductDisplayProps
, context
?:
any
)
:
ProductDisplay
Parameters
Optional
props:
ProductDisplayProps
Optional
context:
any
Returns
ProductDisplay
Properties
Optional
base
base
:
HTMLElement
context
context
:
any
props
props
:
RenderableProps
<
ProductDisplayProps
>
state
state
:
Readonly
<
S
>
Static
Optional
default
Props
default
Props
:
any
Static
Optional
display
Name
display
Name
:
string
Accessors
cart
Item
get
cartItem
(
)
:
CartItem
Returns
CartItem
in
Cart
get
inCart
(
)
:
boolean
Returns
boolean
Methods
force
Update
force
Update
(
callback
?:
function
)
:
void
Parameters
Optional
callback:
function
(
)
:
void
Returns
void
Returns
void
render
render
(
)
:
Element
Returns
Element
set
State
set
State<K>
(
state
:
Pick
<
S
,
K
>
, callback
?:
function
)
:
void
set
State<K>
(
fn
:
function
, callback
?:
function
)
:
void
Type parameters
K
:
keyof S
Parameters
state:
Pick
<
S
,
K
>
Optional
callback:
function
(
)
:
void
Returns
void
Returns
void
Type parameters
K
:
keyof S
Parameters
fn:
function
(
prevState
:
S
, props
:
ProductDisplayProps
)
:
Pick
<
S
,
K
>
Parameters
prevState:
S
props:
ProductDisplayProps
Returns
Pick
<
S
,
K
>
Optional
callback:
function
(
)
:
void
Returns
void
Returns
void
Static
Optional
component
Did
Mount
component
Did
Mount
(
)
:
void
Returns
void
Static
Optional
component
Did
Update
component
Did
Update
(
previousProps
:
Readonly
<
ProductDisplayProps
>
, previousState
:
Readonly
<
S
>
, previousContext
:
any
)
:
void
Parameters
previousProps:
Readonly
<
ProductDisplayProps
>
previousState:
Readonly
<
S
>
previousContext:
any
Returns
void
Static
Optional
component
Will
Mount
component
Will
Mount
(
)
:
void
Returns
void
Static
Optional
component
Will
Receive
Props
component
Will
Receive
Props
(
nextProps
:
Readonly
<
ProductDisplayProps
>
, nextContext
:
any
)
:
void
Parameters
nextProps:
Readonly
<
ProductDisplayProps
>
nextContext:
any
Returns
void
Static
Optional
component
Will
Unmount
component
Will
Unmount
(
)
:
void
Returns
void
Static
Optional
component
Will
Update
component
Will
Update
(
nextProps
:
Readonly
<
ProductDisplayProps
>
, nextState
:
Readonly
<
S
>
, nextContext
:
any
)
:
void
Parameters
nextProps:
Readonly
<
ProductDisplayProps
>
nextState:
Readonly
<
S
>
nextContext:
any
Returns
void
Static
Optional
get
Child
Context
get
Child
Context
(
)
:
object
Returns
object
Static
Optional
should
Component
Update
should
Component
Update
(
nextProps
:
Readonly
<
ProductDisplayProps
>
, nextState
:
Readonly
<
S
>
, nextContext
:
any
)
:
boolean
Parameters
nextProps:
Readonly
<
ProductDisplayProps
>
nextState:
Readonly
<
S
>
nextContext:
any
Returns
boolean
Globals
Product
Display
constructor
base
context
props
state
default
Props
display
Name
cart
Item
in
Cart
force
Update
render
set
State
component
Did
Mount
component
Did
Update
component
Will
Mount
component
Will
Receive
Props
component
Will
Unmount
component
Will
Update
get
Child
Context
should
Component
Update
Generated using
TypeDoc