DataSource Props
In the API Reference below we'll use
DATA_TYPE to refer to the TypeScript type that represents the data the component is bound to.The props are listed with the names you use in an Angular template:
[(sortInfo)] is a model (bind it two-way to a signal), (sortInfoChange) is an output, [onRowSelectionChange] is a function input. The other inputs keep their names. The examples are written for Angular.aggregationReducers
Record<string, DataSourceAggregationReducer>
aggregationReducers.pivotColumn
Partial<InfiniteTableColumn<T>> | (({ column }) => Partial<InfiniteTableColumn<T>>)
aggregationReducers.pivotColumn.inheritFromColumn
string | boolean
batchOperationDelay
number
(cellSelectionChange)[onCellSelectionChange]
(cellSelection, selectionMode='multi-cell') => void
data
DATA_TYPE[]|Promise<DATA_TYPE[]|(params:DataSourceDataParams) => DATA_TYPE[]|Promise<DATA_TYPE[]>
(dataMutations)
({ mutations, dataArray, primaryKeyField }) => void
(dataParamsChange)
(dataParams: DataSourceDataParams<DATA_TYPE:>)=>void
defaultFilterValue
{field?, id?, filter: {type, operator, value}[]
defaultGroupRowsState
{collapsedRows:true|[][], expandedRows:true|[][]}
defaultRowDisabledState
{enabledRows,disabledRows}
defaultRowSelection
string|number|null|object
defaultSortInfo
DataSourceSingleSortInfo<T>|DataSourceSingleSortInfo<T>[]|null
defaultTreeExpandState
TreeExpandStateValue
defaultTreeSelection
TreeSelectionValue
filterDelay
Default: 200
number
filterFunction
({ data, dataArray, index, primaryKey, filterValue, filterTypes }) => boolean
filterTypes
Record<string,{operators,emptyValues, defaultOperator}>
filterTypes.components.FilterEditor
[(filterValue)]model
{field?, id?, filter: {type, operator, value}[]
(filterValueChange)
({field?, id?, filter: {type, operator, value}[]) => void
groupBy.column
Partial<InfiniteTableColumn<T>>
[(groupBy)]model
[(groupRowsState)]model
{collapsedRows:true|[][], expandedRows:true|[][]}
(groupRowsStateChange)
(state: GroupRowsState) => void
isNodeCollapsed
(rowInfo: InfiniteTable_Tree_RowInfoParentNode<DATA_TYPE>, treeExpandState: TreeExpandState) => boolean
isNodeExpanded
(rowInfo: InfiniteTable_Tree_RowInfoParentNode<DATA_TYPE>, treeExpandState: TreeExpandState) => boolean
isNodeReadOnly
(rowInfo: InfiniteTable_Tree_RowInfoParentNode<DATA_TYPE>) => boolean
isRowDisabled
(rowInfo: InfiniteTableRowInfo<T>) => boolean
lazyLoad
Default: false
boolean|{batchSize:number}
livePagination
boolean
livePaginationCursor
string|number|((params) =>string|number)
(livePaginationCursorChange)
(cursor)=> void
multiRowSelectionTarget
Default: 'all'
'all'|'visible'
(nodeCollapse)[onNodeCollapse]
(nodePath: NodePath, {dataSourceApi}) => void
(nodeExpand)[onNodeExpand]
(nodePath: NodePath, {dataSourceApi}) => void
nodesKey
string
[(pivotBy)]model
DataSourcePivotBy<DATA_TYPE>[]
primaryKey
string | (data: DATA_TYPE) => string
(ready)
(dataSourceApi: DataSourceApi<DATA_TYPE>) => void
refetchKey
string|number|object
[(rowDisabledState)]model
{enabledRows,disabledRows}
(rowDisabledStateChange)
(rowDisabledState) => void
[(rowSelection)]model
string|number|null|object
(rowSelectionChange)[onRowSelectionChange]
(rowSelection, selectionMode='single-row'|'multi-row') => void
selectionMode
'single-row'|'multi-row'|'multi-cell'|false
shouldReloadData
{ sortInfo, groupBy, filterValue, pivotBy }
shouldReloadData.filterValue
boolean
shouldReloadData.groupBy
boolean
shouldReloadData.pivotBy
boolean
shouldReloadData.sortInfo
boolean
sortFunction
(sortInfo:DataSourceSingleSortInfo<T>[], arr: T[]) => T[]
[(sortInfo)]model
DataSourceSingleSortInfo<T>|DataSourceSingleSortInfo<T>[]|null
(sortInfoChange)
(sortInfo | null) => void
sortTypes
Record<string, ((a,b) => number)>
[(treeExpandState)]model
TreeExpandStateValue
(treeExpandStateChange)[onTreeExpandStateChange]
(treeExpandState: TreeExpandStateValue, {dataSourceApi,nodePath, nodeState}) => void
treeFilterFunction
({ data, isLeafNode, filterTreeNode, filterValue, filterTypes, primaryKey }) => DATA_TYPE | boolean
[(treeSelection)]model
TreeSelectionValue
(treeSelectionChange)[onTreeSelectionChange]
(treeSelection: TreeSelectionValue, context) => void
useGroupKeysForMultiRowSelection
Default: false
boolean