diff --git a/docs/api/core/table.md b/docs/api/core/table.md index ebac5a5c6b..b8b4751a8d 100644 --- a/docs/api/core/table.md +++ b/docs/api/core/table.md @@ -61,7 +61,7 @@ initialState?: Partial< > ``` -Use this option to optionally pass initial state to the table. This state will be used when resetting various table states either automatically by the table (eg. `options.autoResetPageIndex`) or via functions like `table.resetRowSelection()`. Most reset function allow you optionally pass a flag to reset to a blank/default state instead of the initial state. +Use this option to optionally pass initial state to the table. This state will be used when resetting various table states either automatically by the table (e.g. `options.autoResetPageIndex`) or via functions like `table.resetRowSelection()`. Most reset function allow you optionally pass a flag to reset to a blank/default state instead of the initial state. > 🧠Table state will not be reset when this object changes, which also means that the initial state object does not need to be stable. @@ -227,7 +227,7 @@ getRowId?: ( ) => string ``` -This optional function is used to derive a unique ID for any given row. If not provided the rows index is used (nested rows join together with `.` using their grandparents' index eg. `index.index.index`). If you need to identify individual rows that are originating from any server-side operations, it's suggested you use this function to return an ID that makes sense regardless of network IO/ambiguity eg. a userId, taskId, database ID field, etc. +This optional function is used to derive a unique ID for any given row. If not provided the rows index is used (nested rows join together with `.` using their grandparents' index e.g. `index.index.index`). If you need to identify individual rows that are originating from any server-side operations, it's suggested you use this function to return an ID that makes sense regardless of network IO/ambiguity e.g. a userId, taskId, database ID field, etc. ## Table API diff --git a/docs/api/features/column-filtering.md b/docs/api/features/column-filtering.md index b32d4f314c..bb3517ec1f 100644 --- a/docs/api/features/column-filtering.md +++ b/docs/api/features/column-filtering.md @@ -99,7 +99,7 @@ This optional "hanging" method on any given `filterFn` allows the filter functio ### `filterFn.autoRemove` -This optional "hanging" method on any given `filterFn` is passed a filter value and expected to return `true` if the filter value should be removed from the filter state. eg. Some boolean-style filters may want to remove the filter value from the table state if the filter value is set to `false`. +This optional "hanging" method on any given `filterFn` is passed a filter value and expected to return `true` if the filter value should be removed from the filter state. e.g. Some boolean-style filters may want to remove the filter value from the table state if the filter value is set to `false`. #### Using Filter Functions @@ -169,7 +169,7 @@ The filter function to use with this column. Options: -- A `string` referencing a [built-in filter function](#filter-functions)) +- A `string` referencing a [built-in filter function](#filter-functions) - A [custom filter function](#filter-functions) ### `enableColumnFilter` diff --git a/docs/api/features/column-sizing.md b/docs/api/features/column-sizing.md index 0bf7631be8..1e8885ec9c 100644 --- a/docs/api/features/column-sizing.md +++ b/docs/api/features/column-sizing.md @@ -152,7 +152,7 @@ The dragging and release events are automatically handled for you. enableColumnResizing?: boolean ``` -Enables/disables column resizing for \*all columns\*\*. +Enables/disables column resizing for **all columns**. ### `columnResizeMode` diff --git a/docs/api/features/global-filtering.md b/docs/api/features/global-filtering.md index 75271f731f..032d99d3eb 100644 --- a/docs/api/features/global-filtering.md +++ b/docs/api/features/global-filtering.md @@ -211,7 +211,7 @@ The filter function to use for global filtering. Options: -- A `string` referencing a [built-in filter function](#filter-functions)) +- A `string` referencing a [built-in filter function](#filter-functions) - A `string` that references a custom filter functions provided via the `tableOptions.filterFns` option - A [custom filter function](#filter-functions) diff --git a/docs/api/features/grouping.md b/docs/api/features/grouping.md index b9c21631fc..201f7ec402 100644 --- a/docs/api/features/grouping.md +++ b/docs/api/features/grouping.md @@ -84,7 +84,7 @@ The aggregation function to use with this column. Options: -- A `string` referencing a [built-in aggregation function](#aggregation-functions)) +- A `string` referencing a [built-in aggregation function](#aggregation-functions) - A [custom aggregation function](#aggregation-functions) ### `aggregatedCell` diff --git a/docs/api/features/pagination.md b/docs/api/features/pagination.md index 5e80d5a7a2..710f06e037 100644 --- a/docs/api/features/pagination.md +++ b/docs/api/features/pagination.md @@ -54,7 +54,7 @@ When manually controlling pagination, you can supply a total `rowCount` value to autoResetPageIndex?: boolean ``` -If set to `true`, pagination will be reset to the first page when page-altering state changes eg. `data` is updated, filters change, grouping changes, etc. +If set to `true`, pagination will be reset to the first page when page-altering state changes e.g. `data` is updated, filters change, grouping changes, etc. > 🧠Note: This option defaults to `false` if `manualPagination` is set to `true` diff --git a/docs/api/features/sorting.md b/docs/api/features/sorting.md index e5b60eea50..984a407402 100644 --- a/docs/api/features/sorting.md +++ b/docs/api/features/sorting.md @@ -85,7 +85,7 @@ The sorting function to use with this column. Options: -- A `string` referencing a [built-in sorting function](#sorting-functions)) +- A `string` referencing a [built-in sorting function](#sorting-functions) - A [custom sorting function](#sorting-functions) ### `sortDescFirst` @@ -118,7 +118,7 @@ Enables/Disables multi-sorting for this column. invertSorting?: boolean ``` -Inverts the order of the sorting for this column. This is useful for values that have an inverted best/worst scale where lower numbers are better, eg. a ranking (1st, 2nd, 3rd) or golf-like scoring +Inverts the order of the sorting for this column. This is useful for values that have an inverted best/worst scale where lower numbers are better, e.g. a ranking (1st, 2nd, 3rd) or golf-like scoring ### `sortUndefined` diff --git a/docs/enterprise/ag-grid.md b/docs/enterprise/ag-grid.md index 6836b9af11..fdde709250 100644 --- a/docs/enterprise/ag-grid.md +++ b/docs/enterprise/ag-grid.md @@ -8,7 +8,7 @@ title: AG Grid - An alternative enterprise data-grid solution
-While we clearly love TanStack Table, we acknowledge that it is not a "batteries" included product packed with customer support and enterprise polish. We realize that some of our users may need this though! To help out here, we want to introduce you to AG Grid, an enterprise-grade data grid solution that can supercharge your applications with its extensive feature set and robust performance. While TanStack Table is also a powerful option for implementing data grids, we believe in providing our users with a diverse range of choices that best fit their specific requirements. AG Grid is one such choice, and we're excited to highlight its capabilities for you. +While we clearly love TanStack Table, we acknowledge that it is not a "batteries included" product packed with customer support and enterprise polish. We realize that some of our users may need this though! To help out here, we want to introduce you to AG Grid, an enterprise-grade data grid solution that can supercharge your applications with its extensive feature set and robust performance. While TanStack Table is also a powerful option for implementing data grids, we believe in providing our users with a diverse range of choices that best fit their specific requirements. AG Grid is one such choice, and we're excited to highlight its capabilities for you. ## Why Choose [AG Grid](https://ag-grid.com/react-data-grid/?utm_source=reacttable&utm_campaign=githubreacttable)? diff --git a/docs/framework/qwik/guide/table-state.md b/docs/framework/qwik/guide/table-state.md index fcc42631c2..575257f491 100644 --- a/docs/framework/qwik/guide/table-state.md +++ b/docs/framework/qwik/guide/table-state.md @@ -112,7 +112,7 @@ const table = useQwikTable({ }) -const sate = Qwik.useSignal({ +const state = Qwik.useSignal({ ...table.initialState, //populate the initial state with all of the default state values from the table instance pagination: { pageIndex: 0, diff --git a/docs/framework/react/guide/table-state.md b/docs/framework/react/guide/table-state.md index 09d57566a0..47d1564b2f 100644 --- a/docs/framework/react/guide/table-state.md +++ b/docs/framework/react/guide/table-state.md @@ -168,7 +168,7 @@ const table = useReactTable({ state: { pagination, sorting, - } + }, //syntax 1 onPaginationChange: (updater) => { setPagination(old => { diff --git a/docs/framework/solid/guide/table-state.md b/docs/framework/solid/guide/table-state.md index f5d2f1a62c..38e6c674e0 100644 --- a/docs/framework/solid/guide/table-state.md +++ b/docs/framework/solid/guide/table-state.md @@ -185,7 +185,7 @@ const table = createSolidTable({ get sorting() { return sorting() }, - } + }, //syntax 1 onPaginationChange: (updater) => { setPagination(old => { diff --git a/docs/framework/vue/guide/table-state.md b/docs/framework/vue/guide/table-state.md index aab44cd4fc..1259e5e555 100644 --- a/docs/framework/vue/guide/table-state.md +++ b/docs/framework/vue/guide/table-state.md @@ -114,7 +114,7 @@ const sorting = ref([{ id: 'age', desc: true, //sort by age in descending order by default }]) -const pagination = ref({ pageIndex: 0, pageSize: 15 } +const pagination = ref({ pageIndex: 0, pageSize: 15 }) //Use our controlled state values to fetch data const tableQuery = useQuery({ diff --git a/docs/guide/column-defs.md b/docs/guide/column-defs.md index 07daad7c05..923392c5f9 100644 --- a/docs/guide/column-defs.md +++ b/docs/guide/column-defs.md @@ -13,7 +13,7 @@ Column defs are the single most important part of building a table. They are res - Building the underlying data model that will be used for everything including sorting, filtering, grouping, etc. - Formatting the data model into what will be displayed in the table - Creating [header groups](../api/core/header-group.md), [headers](../api/core/header.md) and [footers](../api/core/column-def.md#footer) -- Creating columns for display-only purposes, eg. action buttons, checkboxes, expanders, sparklines, etc. +- Creating columns for display-only purposes, e.g. action buttons, checkboxes, expanders, sparklines, etc. ## Column Def Types @@ -22,7 +22,7 @@ The following "types" of column defs aren't actually TypeScript types, but more - `Accessor Columns` - Accessor columns have an underlying data model which means they can be sorted, filtered, grouped, etc. - `Display Columns` - - Display columns do **not** have a data model which means they cannot be sorted, filtered, etc, but they can be used to display arbitrary content in the table, eg. a row actions button, checkbox, expander, etc. + - Display columns do **not** have a data model which means they cannot be sorted, filtered, etc, but they can be used to display arbitrary content in the table, e.g. a row actions button, checkbox, expander, etc. - `Grouping Columns` - Group columns do **not** have a data model so they too cannot be sorted, filtered, etc, and are used to group other columns together. It's common to define a header or footer for a column group. @@ -211,7 +211,7 @@ Columns are uniquely identified with 3 strategies: ## Column Formatting & Rendering -By default, columns cells will display their data model value as a string. You can override this behavior by providing custom rendering implementations. Each implementation is provided relevant information about the cell, header or footer and returns something your framework adapter can render eg. JSX/Components/strings/etc. This will depend on which adapter you are using. +By default, columns cells will display their data model value as a string. You can override this behavior by providing custom rendering implementations. Each implementation is provided relevant information about the cell, header or footer and returns something your framework adapter can render e.g. JSX/Components/strings/etc. This will depend on which adapter you are using. There are a couple of formatters available to you: diff --git a/docs/guide/column-filtering.md b/docs/guide/column-filtering.md index 0d9d7e2087..b7fa3c197c 100644 --- a/docs/guide/column-filtering.md +++ b/docs/guide/column-filtering.md @@ -230,7 +230,7 @@ You can attach a few other properties to filter functions to customize their beh - `filterFn.resolveFilterValue` - This optional "hanging" method on any given `filterFn` allows the filter function to transform/sanitize/format the filter value before it is passed to the filter function. -- `filterFn.autoRemove` - This optional "hanging" method on any given `filterFn` is passed a filter value and expected to return `true` if the filter value should be removed from the filter state. eg. Some boolean-style filters may want to remove the filter value from the table state if the filter value is set to `false`. +- `filterFn.autoRemove` - This optional "hanging" method on any given `filterFn` is passed a filter value and expected to return `true` if the filter value should be removed from the filter state. e.g. Some boolean-style filters may want to remove the filter value from the table state if the filter value is set to `false`. ```tsx const startsWithFilterFn =