Skip to content

Commit dc208d4

Browse files
committed
refactor guide section, table instance guide
1 parent b56516b commit dc208d4

25 files changed

+435
-111
lines changed

Diff for: docs/api/core/header.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ The depth of the header, zero-indexed based.
3838
column: Column<TData>
3939
```
4040

41-
The header's associated [Column](./column.md) object
41+
The header's associated [Column](./column) object
4242

4343
### `headerGroup`
4444

4545
```tsx
4646
headerGroup: HeaderGroup<TData>
4747
```
4848

49-
The header's associated [HeaderGroup](./header-group.md) object
49+
The header's associated [HeaderGroup](./header-group) object
5050

5151
### `subHeaders`
5252

Diff for: docs/api/core/row.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,4 @@ An array of the original subRows as returned by the `options.getSubRows` option.
120120
type getAllCells = () => Cell<TData>[]
121121
```
122122
123-
Returns all of the [Cells](./cell.md) for the row.
123+
Returns all of the [Cells](./cell) for the row.

Diff for: docs/config.json

+26-6
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,17 @@
4949
"label": "Migrating to V8",
5050
"to": "guide/migrating"
5151
},
52+
{
53+
"label": "Tables (Getting Started)",
54+
"to": "guide/tables"
55+
},
5256
{
5357
"label": "Column Defs",
5458
"to": "guide/column-defs"
5559
},
5660
{
57-
"label": "Tables",
58-
"to": "guide/tables"
61+
"label": "Rows Models",
62+
"to": "guide/row-models"
5963
},
6064
{
6165
"label": "Rows",
@@ -77,6 +81,10 @@
7781
"label": "Column Ordering",
7882
"to": "guide/column-ordering"
7983
},
84+
{
85+
"label": "Column Pinning",
86+
"to": "guide/column-pinning"
87+
},
8088
{
8189
"label": "Column Sizing",
8290
"to": "guide/column-sizing"
@@ -86,8 +94,20 @@
8694
"to": "guide/column-visibility"
8795
},
8896
{
89-
"label": "Filters",
90-
"to": "guide/filters"
97+
"label": "Column Filtering",
98+
"to": "guide/column-filtering"
99+
},
100+
{
101+
"label": "Global Filtering",
102+
"to": "guide/global-filtering"
103+
},
104+
{
105+
"label": "Fuzzy Filtering",
106+
"to": "guide/fuzzy-filtering"
107+
},
108+
{
109+
"label": "Faceted Values",
110+
"to": "guide/faceted-values"
91111
},
92112
{
93113
"label": "Sorting",
@@ -106,8 +126,8 @@
106126
"to": "guide/pagination"
107127
},
108128
{
109-
"label": "Pinning",
110-
"to": "guide/pinning"
129+
"label": "Row Pinning",
130+
"to": "guide/row-pinning"
111131
},
112132
{
113133
"label": "Row Selection",

Diff for: docs/guide/column-filtering.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: Column Filtering
3+
---
4+
5+
## Examples
6+
7+
Want to skip to the implementation? Check out these examples:
8+
9+
- [filters](../examples/react/filters) (includes faceting)
10+
- [editable-data](../examples/react/editable-data)
11+
- [expanding](../examples/react/expanding)
12+
- [grouping](../examples/react/grouping)
13+
- [pagination](../examples/react/pagination)
14+
- [row-selection](../examples/react/row-selection)
15+
16+
## API
17+
18+
[Filters API](../api/features/filters)
19+
20+
## Column Filtering Guide
21+
22+
Filtering comes in 2 flavors: Column Filtering and Global Filtering.
23+
24+
This guide will focus on column filtering, which is a filter that is applied to a single column's accessor value.

Diff for: docs/guide/column-ordering.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Want to skip to the implementation? Check out these examples:
1212

1313
[Column Ordering API](../api/features/column-ordering)
1414

15-
## Overview
15+
## Column Ordering Guide
1616

1717
There are 3 table features that can reorder columns, which happen in the following order:
1818

Diff for: docs/guide/column-pinning.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: Column Pinning
3+
---
4+
5+
## Examples
6+
7+
Want to skip to the implementation? Check out these examples:
8+
9+
- [column-pinning](../examples/react/column-pinning)
10+
- [row-pinning](../examples/react/row-pinning)
11+
12+
## API
13+
14+
[Pinning API](../api/features/pinning)
15+
16+
## Column Pinning Guide
17+
18+
There are 3 table features that can reorder columns, which happen in the following order:
19+
20+
1. **Column Pinning** - If pinning, columns are split into left, center (unpinned), and right pinned columns.
21+
2. Manual [Column Ordering](../guide/column-ordering) - A manually specified column order is applied.
22+
3. [Grouping](../guide/grouping) - If grouping is enabled, a grouping state is active, and `tableOptions.columnGroupingMode` is set to `'reorder' | 'remove'`, then the grouped columns are reordered to the start of the column flow.

Diff for: docs/guide/column-sizing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Want to skip to the implementation? Check out these examples:
1313

1414
[Column Sizing API](../api/features/column-sizing)
1515

16-
## Guide
16+
## Column Sizing Guide
1717

1818
The column sizing feature allows you to optionally specify the width of each column including min and max widths. It also allows you and your users the ability to dynamically change the width of all columns at will, eg. by dragging the column headers.
1919

Diff for: docs/guide/column-visibility.md

+2
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ Want to skip to the implementation? Check out these examples:
1212
## API
1313

1414
[Column Visibility API](../api/features/column-visibility)
15+
16+
## Column Visibility Guide

Diff for: docs/guide/expanding.md

+2
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ Want to skip to the implementation? Check out these examples:
1212
## API
1313

1414
[Expanding API](../api/features/expanding)
15+
16+
## Expanding Feature Guide

Diff for: docs/guide/faceted-values.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Faceted Values
3+
---
4+
5+
## Examples
6+
7+
Want to skip to the implementation? Check out these examples:
8+
9+
- [filters](../examples/react/filters) (includes faceting)
10+
11+
## API
12+
13+
[Filters API](../api/features/filters)
14+
15+
## Faceted Values Guide

Diff for: docs/guide/features.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ title: Features
44

55
TanStack Table comes with many features, each with their own associated options and API:
66

7-
- [Column Visibility](./guide/column-visibility)
87
- [Column Ordering](./guide/column-ordering)
98
- [Column Pinning](./guide/column-pinning)
109
- [Column Sizing](./guide/column-sizing)
10+
- [Column Visibility](./guide/column-visibility)
11+
- [Expanding](./guide/expanding)
1112
- [Filters](./guide/filters)
12-
- [Sorting](./guide/sorting)
1313
- [Grouping](./guide/grouping)
14-
- [Expanding](./guide/expanding)
15-
- [Row Selection](./guide/row-selection)
1614
- [Pagination](./guide/pagination)
15+
- [Row Pinning](./guide/row-pinning)
16+
- [Row Selection](./guide/row-selection)
17+
- [Sorting](./guide/sorting)

Diff for: docs/guide/filters.md

+6-23
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,11 @@
22
title: Filters
33
---
44

5-
## Examples
5+
<!-- Deprecated -->
66

7-
Want to skip to the implementation? Check out these examples:
7+
The filter guides are now split into multiple guides:
88

9-
- [filters](../examples/react/filters) (includes faceting)
10-
- [editable-data](../examples/react/editable-data)
11-
- [expanding](../examples/react/expanding)
12-
- [grouping](../examples/react/grouping)
13-
- [pagination](../examples/react/pagination)
14-
- [row-selection](../examples/react/row-selection)
15-
16-
## API
17-
18-
[Filters API](../api/features/filters)
19-
20-
## Overview
21-
22-
Filters come in two flavors:
23-
24-
- Column filters
25-
- A filter that is applied to a single column's accessor value.
26-
- Stored in the `state.columnFilters` array as an object containing the columnId and the filter value.
27-
- Global filters
28-
- A single filter value that is applied to all or some of columns' accessor values.
29-
- Stored in the `state.globalFilter` array as any value, usually a string.
9+
- [Column Filtering](./column-filtering)
10+
- [Global Filtering](./global-filtering)
11+
- [Fuzzy Filtering](./fuzzy-filtering)
12+
- [Faceted Values](./faceted-values)

Diff for: docs/guide/fuzzy-filtering.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Fuzzy Filtering
3+
---
4+
5+
## Examples
6+
7+
Want to skip to the implementation? Check out these examples:
8+
9+
- [filters](../examples/react/filters)
10+
11+
## API
12+
13+
[Filters API](../api/features/filters)
14+
15+
## Fuzzy Filtering Guide
16+

Diff for: docs/guide/global-filtering.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: Global Filtering
3+
---
4+
5+
## Examples
6+
7+
Want to skip to the implementation? Check out these examples:
8+
9+
- [filters](../examples/react/filters) (includes faceting)
10+
11+
## API
12+
13+
[Filters API](../api/features/filters)
14+
15+
## Overview
16+
17+
Filtering comes in 2 flavors: Column Filtering and Global Filtering.
18+
19+
This guide will focus on global filtering, which is a filter that is applied across all columns.

Diff for: docs/guide/grouping.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Want to skip to the implementation? Check out these examples:
1212

1313
[Grouping API](../api/features/grouping)
1414

15-
## Overview
15+
## Grouping Guide
1616

1717
There are 3 table features that can reorder columns, which happen in the following order:
1818

Diff for: docs/guide/headers.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ title: Headers
55
## API
66

77
[Header API](../api/core/header)
8+
9+
## Headers Guide

Diff for: docs/guide/pagination.md

+2
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ Want to skip to the implementation? Check out these examples:
1717
## API
1818

1919
[Pagination API](../api/features/pagination)
20+
21+
## Pagination Guide

Diff for: docs/guide/pinning.md

+4-21
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,9 @@
22
title: Pinning
33
---
44

5-
## Examples
5+
<!-- Deprecated -->
66

7-
Want to skip to the implementation? Check out these examples:
7+
Pinning is split into 2 different feature guides:
88

9-
- [column-pinning](../examples/react/column-pinning)
10-
- [row-pinning](../examples/react/row-pinning)
11-
12-
## API
13-
14-
[Pinning API](../api/features/pinning)
15-
16-
## Overview
17-
18-
There are 3 table features that can reorder columns, which happen in the following order:
19-
20-
1. **Column Pinning** - If pinning, columns are split into left, center (unpinned), and right pinned columns.
21-
2. Manual [Column Ordering](../guide/column-ordering) - A manually specified column order is applied.
22-
3. [Grouping](../guide/grouping) - If grouping is enabled, a grouping state is active, and `tableOptions.columnGroupingMode` is set to `'reorder' | 'remove'`, then the grouped columns are reordered to the start of the column flow.
23-
24-
There are 2 table features that can reorder rows, which happen in the following order:
25-
26-
1. **Row Pinning** - If pinning, rows are split into top, center (unpinned), and bottom pinned rows.
27-
2. [Sorting](../guide/sorting)
9+
- [Column Pinning](./column-pinning)
10+
- [Row Pinning](./row-pinning)

Diff for: docs/guide/row-models.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: Row Models
3+
---

Diff for: docs/guide/row-pinning.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: Row Pinning
3+
---
4+
5+
## Examples
6+
7+
Want to skip to the implementation? Check out these examples:
8+
9+
- [row-pinning](../examples/react/row-pinning)
10+
11+
## API
12+
13+
[Pinning API](../api/features/pinning)
14+
15+
## Row Pinning Guide
16+
17+
There are 2 table features that can reorder rows, which happen in the following order:
18+
19+
1. **Row Pinning** - If pinning, rows are split into top, center (unpinned), and bottom pinned rows.
20+
2. [Sorting](../guide/sorting)

Diff for: docs/guide/row-selection.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Want to skip to the implementation? Check out these examples:
1414

1515
[Row Selection API](../api/features/row-selection)
1616

17-
## Guide
17+
## Row Selection Guide
1818

1919
The row selection feature keeps track of which rows are selected and allows you to toggle the selection of rows in a myriad of ways. Let's take a look at some common use cases.
2020

Diff for: docs/guide/sorting.md

+2
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ Want to skip to the implementation? Check out these examples:
1212
## API
1313

1414
[Sorting API](../api/features/sorting)
15+
16+
## Sorting Guide

0 commit comments

Comments
 (0)