Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ProductDisplay<S, S>

Type parameters

  • S

  • S

Hierarchy

Index

Constructors

constructor

  • Parameters

    Returns ProductDisplay

Properties

Optional base

base: HTMLElement

context

context: any

props

props: RenderableProps<ProductDisplayProps>

state

state: Readonly<S>

Static Optional defaultProps

defaultProps: any

Static Optional displayName

displayName: string

Accessors

cartItem

inCart

  • get inCart(): boolean

Methods

forceUpdate

  • forceUpdate(callback?: function): void
  • Parameters

    • Optional callback: function
        • (): void
        • Returns void

    Returns void

render

  • render(): Element

setState

  • setState<K>(state: Pick<S, K>, callback?: function): void
  • setState<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

    Returns void

Static Optional componentDidMount

  • componentDidMount(): void
  • Returns void

Static Optional componentDidUpdate

  • componentDidUpdate(previousProps: Readonly<ProductDisplayProps>, previousState: Readonly<S>, previousContext: any): void
  • Parameters

    Returns void

Static Optional componentWillMount

  • componentWillMount(): void
  • Returns void

Static Optional componentWillReceiveProps

  • Parameters

    Returns void

Static Optional componentWillUnmount

  • componentWillUnmount(): void
  • Returns void

Static Optional componentWillUpdate

  • componentWillUpdate(nextProps: Readonly<ProductDisplayProps>, nextState: Readonly<S>, nextContext: any): void
  • Parameters

    Returns void

Static Optional getChildContext

  • getChildContext(): object
  • Returns object

Static Optional shouldComponentUpdate

  • shouldComponentUpdate(nextProps: Readonly<ProductDisplayProps>, nextState: Readonly<S>, nextContext: any): boolean
  • Parameters

    Returns boolean

Generated using TypeDoc