Interface: OrderListProps
Defined in: components/OrderList.tsx:17
Properties
channelIds?
optionalchannelIds?:number[]
Defined in: components/OrderList.tsx:64
Filter orders by channel IDs
className?
optionalclassName?:string
Defined in: components/OrderList.tsx:49
Override base styles
columnConfig?
optionalcolumnConfig?:Record<string,string>
Defined in: components/OrderList.tsx:31
Label mapping for columns
columns?
optionalcolumns?:string[]
Defined in: components/OrderList.tsx:28
Columns to display. Defaults to ['id', 'date', 'status', 'total', 'action']
companyId?
optionalcompanyId?:number
Defined in: components/OrderList.tsx:43
Override company ID for order filtering (respects company switcher)
enableSearch?
optionalenableSearch?:boolean
Defined in: components/OrderList.tsx:34
Enable searching
formatDate?
optionalformatDate?: (dateString) =>string
Defined in: components/OrderList.tsx:70
Format date
Parameters
dateString
string
Returns
string
formatPrice?
optionalformatPrice?: (price) =>string
Defined in: components/OrderList.tsx:67
Format price
Parameters
price
number
Returns
string
getStatusColor?
optionalgetStatusColor?: (status) =>string
Defined in: components/OrderList.tsx:73
Get status color
Parameters
status
string
Returns
string
graphqlClient?
optionalgraphqlClient?:GraphQLClient
Defined in: components/OrderList.tsx:22
The initialized GraphQL Client instance. Resolved from PropellerProvider when omitted.
hidePagination?
optionalhidePagination?:boolean
Defined in: components/OrderList.tsx:61
Hide pagination controls. Defaults to false.
initialItemsPerPage?
optionalinitialItemsPerPage?:number
Defined in: components/OrderList.tsx:52
Items per page default
labels?
optionallabels?:object
Defined in: components/OrderList.tsx:76
Localization label overrides for UI strings.
action?
optionalaction?:string
Header label for the action column.
date?
optionaldate?:string
Header label for the date column.
loading?
optionalloading?:string
Loading-state message.
next?
optionalnext?:string
Text for the next-page pagination button.
noOrders?
optionalnoOrders?:string
Message shown when no orders match.
of?
optionalof?:string
Connector word in the pagination summary ("of").
order?
optionalorder?:string
Header label for the order ID column.
previous?
optionalprevious?:string
Text for the previous-page pagination button.
showingPage?
optionalshowingPage?:string
Prefix text in the pagination summary ("Showing page").
status?
optionalstatus?:string
Header label for the status column.
total?
optionaltotal?:string
Header label for the total column.
view?
optionalview?:string
Text for the per-row "View" action button.
onOrderClick
onOrderClick: (
orderId) =>void
Defined in: components/OrderList.tsx:25
Callback when an order is clicked
Parameters
orderId
number
Returns
void
orderStatus?
optionalorderStatus?:string[]
Defined in: components/OrderList.tsx:46
Filter orders by these statuses
rowsClickable?
optionalrowsClickable?:boolean
Defined in: components/OrderList.tsx:55
Rows are clickable
searchFields?
optionalsearchFields?:string[]
Defined in: components/OrderList.tsx:37
Fields enabled for searching (UI inputs)
showCompanyOrders?
optionalshowCompanyOrders?:boolean
Defined in: components/OrderList.tsx:58
Show company orders
termFields?
optionaltermFields?:any[]
Defined in: components/OrderList.tsx:40
Term fields configuration (backend)
user?
optionaluser?:Contact|Customer|null
Defined in: components/OrderList.tsx:19
The authenticated user (Contact or Customer). Resolved from PropellerProvider when omitted.