Skip to content

Commit

Permalink
docs:api
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Mar 20, 2024
1 parent 699bb1f commit 47e5f89
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 5 deletions.
9 changes: 8 additions & 1 deletion docs/pages/x/api/data-grid/grid-actions-col-def.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"default": "false",
"isOptional": true
},
"display": { "type": { "description": "'text' | 'flex'" }, "isOptional": true },
"editable": { "type": { "description": "boolean" }, "default": "false", "isOptional": true },
"field": { "type": { "description": "string" } },
"filterable": { "type": { "description": "boolean" }, "default": "true", "isOptional": true },
Expand All @@ -61,6 +62,12 @@
"type": { "description": "GetApplyQuickFilterFn<R, V>" },
"isOptional": true
},
"getSortComparator": {
"type": {
"description": "(sortDirection: GridSortDirection) => GridComparatorFn<V> | undefined"
},
"isOptional": true
},
"groupable": { "type": { "description": "boolean" }, "default": "true", "isOptional": true },
"groupingValueGetter": {
"type": { "description": "GridGroupingValueGetter<R>" },
Expand Down Expand Up @@ -112,7 +119,7 @@
"isOptional": true
},
"renderHeaderFilter": {
"type": { "description": "(params: GridHeaderFilterCellProps) => React.ReactNode" },
"type": { "description": "(params: GridRenderHeaderFilterProps) => React.ReactNode" },
"isOptional": true,
"isProPlan": true
},
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/x/api/data-grid/grid-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
},
"applySorting": { "type": { "description": "() => void" } },
"autosizeColumns": {
"type": { "description": "(options?: GridAutosizeOptions) => Promise<void>" },
"isProPlan": true
"type": { "description": "(options?: GridAutosizeOptions) => Promise<void>" }
},
"deleteFilterItem": { "type": { "description": "(item: GridFilterItem) => void" } },
"exportDataAsCsv": { "type": { "description": "(options?: GridCsvExportOptions) => void" } },
Expand Down Expand Up @@ -238,6 +237,7 @@
"type": { "description": "(id: GridRowId, isExpanded: boolean) => void" },
"isProPlan": true
},
"setRowCount": { "type": { "description": "(rowCount: number) => void" } },
"setRowGroupingCriteriaIndex": {
"type": {
"description": "(groupingCriteriaField: string, groupingIndex: number) => void"
Expand Down
9 changes: 8 additions & 1 deletion docs/pages/x/api/data-grid/grid-col-def.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"default": "false",
"isOptional": true
},
"display": { "type": { "description": "'text' | 'flex'" }, "isOptional": true },
"editable": { "type": { "description": "boolean" }, "default": "false", "isOptional": true },
"field": { "type": { "description": "string" } },
"filterable": { "type": { "description": "boolean" }, "default": "true", "isOptional": true },
Expand All @@ -56,6 +57,12 @@
"type": { "description": "GetApplyQuickFilterFn<R, V>" },
"isOptional": true
},
"getSortComparator": {
"type": {
"description": "(sortDirection: GridSortDirection) => GridComparatorFn<V> | undefined"
},
"isOptional": true
},
"groupable": { "type": { "description": "boolean" }, "default": "true", "isOptional": true },
"groupingValueGetter": {
"type": { "description": "GridGroupingValueGetter<R>" },
Expand Down Expand Up @@ -107,7 +114,7 @@
"isOptional": true
},
"renderHeaderFilter": {
"type": { "description": "(params: GridHeaderFilterCellProps) => React.ReactNode" },
"type": { "description": "(params: GridRenderHeaderFilterProps) => React.ReactNode" },
"isOptional": true,
"isProPlan": true
},
Expand Down
9 changes: 8 additions & 1 deletion docs/pages/x/api/data-grid/grid-single-select-col-def.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"default": "false",
"isOptional": true
},
"display": { "type": { "description": "'text' | 'flex'" }, "isOptional": true },
"editable": { "type": { "description": "boolean" }, "default": "false", "isOptional": true },
"field": { "type": { "description": "string" } },
"filterable": { "type": { "description": "boolean" }, "default": "true", "isOptional": true },
Expand All @@ -64,6 +65,12 @@
"type": { "description": "(value: ValueOptions) => any" },
"isOptional": true
},
"getSortComparator": {
"type": {
"description": "(sortDirection: GridSortDirection) => GridComparatorFn<V> | undefined"
},
"isOptional": true
},
"groupable": { "type": { "description": "boolean" }, "default": "true", "isOptional": true },
"groupingValueGetter": {
"type": { "description": "GridGroupingValueGetter<R>" },
Expand Down Expand Up @@ -115,7 +122,7 @@
"isOptional": true
},
"renderHeaderFilter": {
"type": { "description": "(params: GridHeaderFilterCellProps) => React.ReactNode" },
"type": { "description": "(params: GridRenderHeaderFilterProps) => React.ReactNode" },
"isOptional": true,
"isProPlan": true
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"description": "If <code>true</code>, this column will not be included in exports."
},
"disableReorder": { "description": "If <code>true</code>, this column cannot be reordered." },
"display": {
"description": "Display mode for the cell:<br /> - &#39;text&#39;: For text-based cells (default)<br /> - &#39;flex&#39;: For cells with HTMLElement children"
},
"editable": { "description": "If <code>true</code>, the cells of the column are editable." },
"field": {
"description": "The column identifier. It&#39;s used to map with GridRowModel values."
Expand All @@ -31,6 +34,9 @@
"getApplyQuickFilterFn": {
"description": "The callback that generates a filtering function for a given quick filter value.<br />This function can return <code>null</code> to skip filtering for this value and column."
},
"getSortComparator": {
"description": "Allows to use a different comparator function depending on the sort direction.<br />Takes precedence over <code>sortComparator</code>."
},
"groupable": {
"description": "If <code>true</code>, the rows can be grouped based on this column values (pro-plan only).<br />Only available in DataGridPremium."
},
Expand Down
1 change: 1 addition & 0 deletions docs/translations/api-docs/data-grid/grid-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
"description": "Set the quick filter values to the one given by <code>values</code>"
},
"setRowChildrenExpansion": { "description": "Expand or collapse a row children." },
"setRowCount": { "description": "Sets the <code>rowCount</code> to a new value." },
"setRowGroupingCriteriaIndex": {
"description": "Sets the grouping index of a grouping criteria."
},
Expand Down
6 changes: 6 additions & 0 deletions docs/translations/api-docs/data-grid/grid-col-def.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"description": "If <code>true</code>, this column will not be included in exports."
},
"disableReorder": { "description": "If <code>true</code>, this column cannot be reordered." },
"display": {
"description": "Display mode for the cell:<br /> - &#39;text&#39;: For text-based cells (default)<br /> - &#39;flex&#39;: For cells with HTMLElement children"
},
"editable": { "description": "If <code>true</code>, the cells of the column are editable." },
"field": {
"description": "The column identifier. It&#39;s used to map with GridRowModel values."
Expand All @@ -30,6 +33,9 @@
"getApplyQuickFilterFn": {
"description": "The callback that generates a filtering function for a given quick filter value.<br />This function can return <code>null</code> to skip filtering for this value and column."
},
"getSortComparator": {
"description": "Allows to use a different comparator function depending on the sort direction.<br />Takes precedence over <code>sortComparator</code>."
},
"groupable": {
"description": "If <code>true</code>, the rows can be grouped based on this column values (pro-plan only).<br />Only available in DataGridPremium."
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"description": "If <code>true</code>, this column will not be included in exports."
},
"disableReorder": { "description": "If <code>true</code>, this column cannot be reordered." },
"display": {
"description": "Display mode for the cell:<br /> - &#39;text&#39;: For text-based cells (default)<br /> - &#39;flex&#39;: For cells with HTMLElement children"
},
"editable": { "description": "If <code>true</code>, the cells of the column are editable." },
"field": {
"description": "The column identifier. It&#39;s used to map with GridRowModel values."
Expand All @@ -34,6 +37,9 @@
"description": "Used to determine the label displayed for a given value option."
},
"getOptionValue": { "description": "Used to determine the value used for a value option." },
"getSortComparator": {
"description": "Allows to use a different comparator function depending on the sort direction.<br />Takes precedence over <code>sortComparator</code>."
},
"groupable": {
"description": "If <code>true</code>, the rows can be grouped based on this column values (pro-plan only).<br />Only available in DataGridPremium."
},
Expand Down

0 comments on commit 47e5f89

Please sign in to comment.