Interface: PriceRequestListProps
Defined in: components/PriceRequestList.tsx:12
Properties
className?
optionalclassName?: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?
optionallabels?: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?
optionalonQuantityChange?: (code,quantity) =>void
Defined in: components/PriceRequestList.tsx:18
Changes a requested quantity.
Parameters
code
string
quantity
number
Returns
void
onRemove?
optionalonRemove?: (code) =>void
Defined in: components/PriceRequestList.tsx:16
Drops a product from the list.
Parameters
code
string
Returns
void
onSubmit?
optionalonSubmit?: (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?
optionalsubmitting?:boolean
Defined in: components/PriceRequestList.tsx:22
True while the request is in flight.