Skip to main content

Interface: PriceRequestListProps

Defined in: components/PriceRequestList.tsx:12

Properties​

className?​

optional className?: string

Defined in: components/PriceRequestList.tsx:29

Extra CSS class applied to the root element.


items​

items: PriceRequestItem[]

Defined in: components/PriceRequestList.tsx:14

The collected products. Pass items from usePriceRequest.


labels?​

optional labels?: Record<string, string>

Defined in: components/PriceRequestList.tsx:27

Override any UI string. Keys: title, colCode, colName, colQuantity, comments, send, sending, empty, remove, sent.


onQuantityChange?​

optional onQuantityChange?: (code, quantity) => void

Defined in: components/PriceRequestList.tsx:18

Changes a requested quantity.

Parameters​

code​

string

quantity​

number

Returns​

void


onRemove?​

optional onRemove?: (code) => void

Defined in: components/PriceRequestList.tsx:16

Drops a product from the list.

Parameters​

code​

string

Returns​

void


onSubmit?​

optional onSubmit?: (comment) => boolean | Promise<boolean>

Defined in: components/PriceRequestList.tsx:20

Sends the request. Resolves true on success.

Parameters​

comment​

string

Returns​

boolean | Promise<boolean>


submitting?​

optional submitting?: boolean

Defined in: components/PriceRequestList.tsx:22

True while the request is in flight.