You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -29,4 +29,4 @@ jobs:
29
29
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
When using the API object outside the Data Grid components, you need to initialize it using the `useGridApiRef` hook.
39
-
You can then pass it to the Data Grid's `apiRef` prop:
43
+
When using the API object outside Data Grid components, you must initialize it using the `useGridApiRef` hook.
44
+
You can then pass it to the `apiRef` prop on the `DataGrid`:
40
45
41
46
```tsx
42
47
function CustomDataGrid(props) {
@@ -52,7 +57,7 @@ function CustomDataGrid(props) {
52
57
```
53
58
54
59
:::warning
55
-
The API object is populated by the Data Grid's various plugins during the first render of the component.
60
+
The API object is populated by the `DataGrid`'s various plugins during the first render of the component.
56
61
If you try to use it in the first render of the component, it will crash because not all methods are registered yet.
57
62
:::
58
63
@@ -64,7 +69,7 @@ If you try to use it in the first render of the component, it will crash because
64
69
65
70
You can control the disabled features of a column (for example hiding, sorting, filtering, pinning, grouping, etc) programmatically using `initialState`, controlled models, or the API object.
66
71
67
-
In the example below, API object is used to build a custom sorting for the _firstName_ column which is not sortable by the default grid UI (using the `colDef.sortable` property set to `false`).
72
+
In the example below, the API object is used to build a custom sorting for the `firstName` column which is not sortable by the default grid UI (using the `colDef.sortable` property set to `false`).
0 commit comments