Advanced Table

Cell Behavior

Custom Components for Cells


The Advanced Table also allows for rendering custom components within individual Cells. To achieve this, you can make use of the optional customRenderer item within each columnDefinition. This function gives you access to the current Cell's value if you just want to use that with a custom Kit, but it also gives you access to the entire row object. The row object provides all data for the current row. To access the data, use row.original which is the entire data object for the current row. See the code snippet below for 3 separate use cases and how they were acheived.

See here for more indepth information on columnDefinitions are how to use them.

See here for the structure of the tableData used.

Custom Header Cell


The optional header key/value pair can be used within columnDefinitions to render a custom header. This example shows an Icon and Tooltip being used but other kits can be used as well.

Custom Header with Multiple Headers


The optional header key/value pair within columnDefinitions can also be used with multi headers as seen here.

Inline Cell Editing


Inline Cell Editing can be achieved with a combination of our TextInput kit and the customRenderer method available through columnDefinitions.

Hover over any cell within the 'Scheduled Meetings' column to see the TextInput and type in to change values. Values can be saved by clicking away from the TextInput or by hitting 'Enter'.
See the code snippet below to see how this was achieved. Devs must manage state themselves as shown.


Available Props