Optional
customThe value of the cell column
any
type is used because user can pass any value
The index of the row
The index of the column
The current state of the table
A function to update the value of the cell
any
type is used because user can pass any value
Optional
customSimilar to and performing better than customBodyRender
, however with the following caveats:
The index of the item in the data array.
The index of the row in the current page table.
Optional
customThese options only affect the filter chips that display after filter are selected. To modify the filters themselves, see filterOptions.
Optional
render?: (value: ReactNode) => ReactNodeFunction that return a string or array of strings use as the chip label(s).
Optional
update?: (filterList: FilterList, filterPos: number, index: number) => FilterListFunction that returns a filterList allowing for custom filter updates when removing the filter chip. FilterType must be set to 'custom'.
Optional
customOptional
customFunction that returns a string or React component. Used for creating a custom header to a column. This method only affects the display in the table's header, other areas of the table (such as the View Columns popover), will use the column's label.
Optional
customFunction that returns a string or React component. Used as display for column header.
Display the column. Possible values:
Display column in the CSV download file.
Optional
draggableDetermines if the column can be dragged. The draggableColumns.enabled option must also be true.
Optional
emptyThis denote whether the column has data or not. For use with intentionally empty columns.
Display column in filter list
Optional
filterFilter value list.
Optional
filterThese options affect the filter display and functionality from the filter dialog.
To modify the filter chip that display after selecting filters.
Optional
filterChoice of filtering view. Takes priority over global filterType option.
Use 'custom' is you are supplying your own rendering via filterOptions.
Optional
hintDisplay hint icon with string as tooltip on hover.
Display column when printing.
Exclude/include column from search results.
Optional
setIs called for each header cell and allows you to return custom props for the header cell based on its data.
Optional
setIs called for each cell and allows to you return custom props for this cell based on its data.
Enable/disable sorting on column.
Optional
sortCustom sort function for the column. Takes in an order string and returns a function that compares the two column values. If this method and options.customSort are both defined, this method will take precedence.
Causes the first click on a column to sort by desc rather than asc.
Optional
sortOptional
sortAllows for a third click on a column header to undo any sorting on the column.
Allow user to toggle column visibility through 'View Column' list.
Function that returns a string or React component. Used to display data within all table cells of a given column. The value returned from this function will be used for filtering in the filter dialog. If this isn't need, you may want to consider
customBodyRenderLite
instead.