Skip to content

Commit

Permalink
escape values
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Feb 12, 2024
1 parent a1136b6 commit 5fd3baa
Show file tree
Hide file tree
Showing 27 changed files with 348 additions and 258 deletions.
52 changes: 35 additions & 17 deletions docs/pages/x/api/data-grid/grid-actions-col-def.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
"isPremiumPlan": true
},
"cellClassName": {
"type": { "description": "GridCellClassNamePropType<R, V>" },
"type": { "description": "GridCellClassNamePropType&lt;R, V&gt;" },
"isOptional": true
},
"colSpan": {
"type": { "description": "number | GridColSpanFn<R, V, F>" },
"type": { "description": "number \\| GridColSpanFn&lt;R, V, F&gt;" },
"default": "1",
"isOptional": true
},
Expand All @@ -48,22 +48,22 @@
"field": { "type": { "description": "string" } },
"filterable": { "type": { "description": "boolean" }, "default": "true", "isOptional": true },
"filterOperators": {
"type": { "description": "GridFilterOperator<R, V, F>[]" },
"type": { "description": "GridFilterOperator&lt;R, V, F&gt;[]" },
"isOptional": true
},
"flex": { "type": { "description": "number" }, "isOptional": true },
"getActions": {
"type": {
"description": "(params: GridRowParams<R>) => React.ReactElement<GridActionsCellItemProps>[]"
"description": "(params: GridRowParams&lt;R&gt;) =&gt; React.ReactElement&lt;GridActionsCellItemProps&gt;[]"
}
},
"getApplyQuickFilterFn": {
"type": { "description": "GetApplyQuickFilterFn<R, V>" },
"type": { "description": "GetApplyQuickFilterFn&lt;R, V&gt;" },
"isOptional": true
},
"groupable": { "type": { "description": "boolean" }, "default": "true", "isOptional": true },
"groupingValueGetter": {
"type": { "description": "GridGroupingValueGetter<R>" },
"type": { "description": "GridGroupingValueGetter&lt;R&gt;" },
"isOptional": true,
"isPremiumPlan": true
},
Expand All @@ -82,46 +82,64 @@
"maxWidth": { "type": { "description": "number" }, "default": "Infinity", "isOptional": true },
"minWidth": { "type": { "description": "number" }, "default": "50", "isOptional": true },
"pastedValueParser": {
"type": { "description": "GridPastedValueParser<R, V, F>" },
"type": { "description": "GridPastedValueParser&lt;R, V, F&gt;" },
"isOptional": true,
"isPremiumPlan": true
},
"pinnable": { "type": { "description": "boolean" }, "default": "true", "isOptional": true },
"preProcessEditCellProps": {
"type": {
"description": "(params: GridPreProcessEditCellProps) => GridEditCellProps | Promise<GridEditCellProps>"
"description": "(params: GridPreProcessEditCellProps) =&gt; GridEditCellProps \\| Promise&lt;GridEditCellProps&gt;"
},
"isOptional": true
},
"renderCell": {
"type": { "description": "(params: GridRenderCellParams<R, V, F>) => React.ReactNode" },
"type": {
"description": "(params: GridRenderCellParams&lt;R, V, F&gt;) =&gt; React.ReactNode"
},
"isOptional": true
},
"renderEditCell": {
"type": { "description": "(params: GridRenderEditCellParams<R, V, F>) => React.ReactNode" },
"type": {
"description": "(params: GridRenderEditCellParams&lt;R, V, F&gt;) =&gt; React.ReactNode"
},
"isOptional": true
},
"renderHeader": {
"type": { "description": "(params: GridColumnHeaderParams<R, V, F>) => React.ReactNode" },
"type": {
"description": "(params: GridColumnHeaderParams&lt;R, V, F&gt;) =&gt; React.ReactNode"
},
"isOptional": true
},
"renderHeaderFilter": {
"type": { "description": "(params: GridHeaderFilterCellProps) => React.ReactNode" },
"type": { "description": "(params: GridHeaderFilterCellProps) =&gt; React.ReactNode" },
"isOptional": true,
"isProPlan": true
},
"resizable": { "type": { "description": "boolean" }, "default": "true", "isOptional": true },
"sortable": { "type": { "description": "boolean" }, "default": "true", "isOptional": true },
"sortComparator": { "type": { "description": "GridComparatorFn<V>" }, "isOptional": true },
"sortComparator": {
"type": { "description": "GridComparatorFn&lt;V&gt;" },
"isOptional": true
},
"sortingOrder": { "type": { "description": "GridSortDirection[]" }, "isOptional": true },
"type": { "type": { "description": "'actions'" }, "default": "'actions'" },
"valueFormatter": {
"type": { "description": "GridValueFormatter<R, V, F>" },
"type": { "description": "GridValueFormatter&lt;R, V, F&gt;" },
"isOptional": true
},
"valueGetter": {
"type": { "description": "GridValueGetter&lt;R, V, F&gt;" },
"isOptional": true
},
"valueParser": {
"type": { "description": "GridValueParser&lt;R, V, F&gt;" },
"isOptional": true
},
"valueSetter": {
"type": { "description": "GridValueSetter&lt;R, V, F&gt;" },
"isOptional": true
},
"valueGetter": { "type": { "description": "GridValueGetter<R, V, F>" }, "isOptional": true },
"valueParser": { "type": { "description": "GridValueParser<R, V, F>" }, "isOptional": true },
"valueSetter": { "type": { "description": "GridValueSetter<R, V, F>" }, "isOptional": true },
"width": { "type": { "description": "number" }, "default": "100", "isOptional": true }
}
}
8 changes: 5 additions & 3 deletions docs/pages/x/api/data-grid/grid-aggregation-function.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"demos": "<ul><li><a href=\"/x/react-data-grid/aggregation/#aggregation-functions\">Aggregation functions</a></li></ul>",
"properties": {
"apply": {
"type": { "description": "(params: GridAggregationParams<V>) => AV | null | undefined" },
"type": {
"description": "(params: GridAggregationParams&lt;V&gt;) =&gt; AV \\| null \\| undefined"
},
"isPremiumPlan": true
},
"columnTypes": {
Expand All @@ -13,7 +15,7 @@
"isPremiumPlan": true
},
"getCellValue": {
"type": { "description": "(params: GridAggregationGetCellValueParams) => V" },
"type": { "description": "(params: GridAggregationGetCellValueParams) =&gt; V" },
"isOptional": true,
"isPremiumPlan": true
},
Expand All @@ -30,7 +32,7 @@
"isPremiumPlan": true
},
"valueFormatter": {
"type": { "description": "(params: GridValueFormatterParams<AV>) => FAV" },
"type": { "description": "(params: GridValueFormatterParams&lt;AV&gt;) =&gt; FAV" },
"isOptional": true,
"isPremiumPlan": true
}
Expand Down
Loading

0 comments on commit 5fd3baa

Please sign in to comment.