Skip to content

Commit

Permalink
[DataGrid] Fix a typo in gridFilterApi.ts (#10786)
Browse files Browse the repository at this point in the history
Co-authored-by: Bilal Shafi <[email protected]>
  • Loading branch information
vu-dao-93 and MBilalShafi authored Nov 3, 2023
1 parent 4295a7f commit 83b9475
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/pages/x/api/data-grid/grid-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ import { GridApi } from '@mui/x-data-grid';
| <span class="prop-name">setPageSize</span> | <span class="prop-type">(pageSize: number) =&gt; void</span> | Sets the number of displayed rows to the value given by `pageSize`. |
| <span class="prop-name">setPaginationModel</span> | <span class="prop-type">(model: GridPaginationModel) =&gt; void</span> | Sets the `paginationModel` to a new value. |
| <span class="prop-name">setPinnedColumns [<span class="plan-pro" title="Pro plan"></span>](/x/introduction/licensing/#pro-plan)</span> | <span class="prop-type">(pinnedColumns: GridPinnedColumns) =&gt; void</span> | Changes the pinned columns. |
| <span class="prop-name">setQuickFilterValues</span> | <span class="prop-type">(values: any[]) =&gt; void</span> | Set the quick filter values ot the one given by `values` |
| <span class="prop-name">setQuickFilterValues</span> | <span class="prop-type">(values: any[]) =&gt; void</span> | Set the quick filter values to the one given by `values` |
| <span class="prop-name">setRowChildrenExpansion [<span class="plan-pro" title="Pro plan"></span>](/x/introduction/licensing/#pro-plan)</span> | <span class="prop-type">(id: GridRowId, isExpanded: boolean) =&gt; void</span> | Expand or collapse a row children. |
| <span class="prop-name">setRowGroupingCriteriaIndex [<span class="plan-premium" title="Premium plan"></span>](/x/introduction/licensing/#premium-plan)</span> | <span class="prop-type">(groupingCriteriaField: string, groupingIndex: number) =&gt; void</span> | Sets the grouping index of a grouping criteria. |
| <span class="prop-name">setRowGroupingModel [<span class="plan-premium" title="Premium plan"></span>](/x/introduction/licensing/#premium-plan)</span> | <span class="prop-type">(model: GridRowGroupingModel) =&gt; void</span> | Sets the columns to use as grouping criteria. |
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/data-grid/grid-filter-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
{
"name": "setQuickFilterValues",
"description": "Set the quick filter values ot the one given by <code>values</code>",
"description": "Set the quick filter values to the one given by <code>values</code>",
"type": "(values: any[]) => void"
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/grid/x-data-grid/src/models/api/gridFilterApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface GridFilterApi {
reason?: GridControlledStateReasonLookup['filter'],
) => void;
/**
* Set the quick filter values ot the one given by `values`
* Set the quick filter values to the one given by `values`
* @param {any[]} values The list of element to quick filter
*/
setQuickFilterValues: (values: any[]) => void;
Expand Down

0 comments on commit 83b9475

Please sign in to comment.