Skip to content

Commit

Permalink
Added copy, removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
nidaqg committed Dec 21, 2024
1 parent 788eb64 commit 29aa1c3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,12 @@ const AdvancedTable = (props: AdvancedTableProps) => {
return {
header: column.label || "",
columns: buildColumns(column.columns),
headerClassName: 'grouped-header',
};
} else {
// Define the base column structure
const columnStructure = {
...columnHelper.accessor(column.accessor, {
header: column.label || "",
cellClassName: 'leaf-column-cell',
}),
};

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use a nested `columns` array in your columnDefinitions to create multiple header rows. Any column with `columns` is treated as a grouped header, and its child columns are displayed beneath it.
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ examples:
- advanced_table_custom_cell: Custom Components for Cells
- advanced_table_pagination: Pagination
- advanced_table_pagination_with_props: Pagination Props
- advanced_table_column_headers: Multiple Column Headers
- advanced_table_column_headers: Multi-Header Columns

0 comments on commit 29aa1c3

Please sign in to comment.