OptionalcustomThe 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
OptionalcustomSimilar 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.
OptionalcustomThese options only affect the filter chips that display after filter are selected. To modify the filters themselves, see filterOptions.
Optionalrender?: (value: ReactNode) => ReactNodeFunction that return a string or array of strings use as the chip label(s).
Optionalupdate?: (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'.
OptionalcustomOptionalcustomFunction 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.
OptionalcustomFunction 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.
OptionaldraggableDetermines if the column can be dragged. The draggableColumns.enabled option must also be true.
OptionalemptyThis denote whether the column has data or not. For use with intentionally empty columns.
Display column in filter list
OptionalfilterFilter value list.
OptionalfilterThese options affect the filter display and functionality from the filter dialog.
To modify the filter chip that display after selecting filters.
OptionalfilterChoice of filtering view. Takes priority over global filterType option.
Use 'custom' is you are supplying your own rendering via filterOptions.
OptionalhintDisplay hint icon with string as tooltip on hover.
Display column when printing.
Exclude/include column from search results.
OptionalsetIs called for each header cell and allows you to return custom props for the header cell based on its data.
OptionalsetIs called for each cell and allows to you return custom props for this cell based on its data.
Enable/disable sorting on column.
OptionalsortCustom 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.
OptionalsortOptionalsortAllows 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
customBodyRenderLiteinstead.