Interface.ExtensionTableProps
@standhigher/polaris-data-table
@standhigher/polaris-data-table / ExtensionTableProps
Interface: ExtensionTableProps<T>
Type Parameters
T
T extends object
Properties
columns
columns: readonly
ExtensionTableColumn<T>[]
data
data: readonly
T[]
rowId
rowId:
Extract<keyofT,string> | ((row) =>string)
host
Required explicit host context; ExtensionTable never reads Admin routing or shop globals.
readOnly?
optionalreadOnly?:boolean
compact?
optionalcompact?:boolean
selectedRowId?
optionalselectedRowId?:string
onSelectionChange?
optionalonSelectionChange?: (rowId) =>void
Parameters
rowId
string | undefined
Returns
void
rowAction?
optionalrowAction?:ExtensionTableRowAction<T>
loading?
optionalloading?:boolean
error?
optionalerror?:ReactNode
onRetry?
optionalonRetry?: () =>void
Returns
void
loadingState?
optionalloadingState?:ReactNode
emptyState?
optionalemptyState?:ReactNode
errorState?
optionalerrorState?: (context) =>ReactNode
Parameters
context
error
ReactNode
onRetry?
() => void
Returns
ReactNode
hasMore?
optionalhasMore?:boolean
Cursor ownership stays in the host; this is intentionally unrelated to V1 offset pagination.
loadingMore?
optionalloadingMore?:boolean
onLoadMore?
optionalonLoadMore?: () =>void|Promise<void>
Returns
void | Promise<void>
labels?
optionallabels?:Partial<ExtensionTableLabels>