-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
264ab5e
commit b5253c7
Showing
187 changed files
with
4,038 additions
and
3,328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
# Data table extensions with `@tanstack/table` | ||
|
||
This monorepo contains various examples of how to build complex data tables with the `@tanstack/table` library. There will be support for both React and web components for each example included here. | ||
This monorepo contains various examples of how to build complex data tables with | ||
the `@tanstack/table` library. There will be support for both React and web | ||
components for each example included here. | ||
|
||
### Why? | ||
|
||
The work and approach here is an iteration of the `Datagrid` component from `@carbon/ibm-products`. Some of the challenges faced with building and maintaining this component is that it is _not_ composable and thus creates a barrier for the flexibility of experiences that can be created with it. | ||
The work and approach here is an iteration of the `Datagrid` component from | ||
`@carbon/ibm-products`. Some of the challenges faced with building and | ||
maintaining this component is that it is _not_ composable and thus creates a | ||
barrier for the flexibility of experiences that can be created with it. | ||
|
||
The example based approach outlined within this repo provides teams with a launch point for creating complex data table interactions within the Carbon Design System. The key difference is that this functionality is not wrapped around one component (as is the case with the `Datagrid` from `@carbon/ibm-products`). | ||
The example based approach outlined within this repo provides teams with a | ||
launch point for creating complex data table interactions within the Carbon | ||
Design System. The key difference is that this functionality is not wrapped | ||
around one component (as is the case with the `Datagrid` from | ||
`@carbon/ibm-products`). | ||
|
||
See readmes for code sandbox and stackblitz example environments. | ||
See readmes for code sandbox and stackblitz example environments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Copyright IBM Corp. 2024, 2024 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const prettierConfig = require('prettier-config-carbon'); | ||
|
||
module.exports = prettierConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
## Data table extensions, `@tanstack/react-table` | ||
|
||
| Example | Code sandbox | Stackblitz | ||
| --- | --- | --- | | ||
| Batch actions | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/batch-actions) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/batch-actions) | ||
| Customize column order | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/customizeColumns) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/customizeColumns) | ||
| Editable cells | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/editableCells) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/editableCells) | ||
| Filter flyout | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/filterFlyout) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/filterFlyout) | ||
| Filter panel | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/filterPanel) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/filterPanel) | ||
| Global filter | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/globalFilter) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/globalFilter) | ||
| Infinite scroll | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/infiniteScroll) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/infiniteScroll) | ||
| Nested rows | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/nestedRows) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/nestedRows) | ||
| Pagination | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/pagination) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/pagination) | ||
| Column resizing | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/resizing) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/resizing) | ||
| Row click | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/row-click) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/row-click) | ||
| Row expansion | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/rowExpansion) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/rowExpansion) | ||
| Sortable columns | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/sortable) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/sortable) | ||
| Sticky columns | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/sticky-columns) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/sticky-columns) | ||
| Example | Code sandbox | Stackblitz | | ||
| ---------------------- | ------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | | ||
| Batch actions | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/batch-actions) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/batch-actions) | | ||
| Customize column order | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/customizeColumns) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/customizeColumns) | | ||
| Editable cells | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/editableCells) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/editableCells) | | ||
| Filter flyout | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/filterFlyout) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/filterFlyout) | | ||
| Filter panel | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/filterPanel) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/filterPanel) | | ||
| Global filter | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/globalFilter) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/globalFilter) | | ||
| Infinite scroll | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/infiniteScroll) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/infiniteScroll) | | ||
| Nested rows | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/nestedRows) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/nestedRows) | | ||
| Pagination | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/pagination) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/pagination) | | ||
| Column resizing | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/resizing) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/resizing) | | ||
| Row click | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/row-click) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/row-click) | | ||
| Row expansion | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/rowExpansion) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/rowExpansion) | | ||
| Sortable columns | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/sortable) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/sortable) | | ||
| Sticky columns | [View example](https://codesandbox.io/s/github/matthewgallo/tanstack-carbon/tree/main/react/sticky-columns) | [View example](https://stackblitz.com/github/matthewgallo/tanstack-carbon/tree/main/react/sticky-columns) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.