From 84d91d726ca0e0822455c5ddb8cae3724bf6c96f Mon Sep 17 00:00:00 2001 From: Constance Chen Date: Tue, 30 Nov 2021 14:27:36 -0800 Subject: [PATCH] [Misc documentation cleanup] Remove unrequired props from snippets - to help focus more on rowHeightsOptions and more easily provide a bare minimum example --- .../datagrid_height_options_example.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src-docs/src/views/datagrid/datagrid_height_options_example.js b/src-docs/src/views/datagrid/datagrid_height_options_example.js index e368abb23b70..76d5dfc2d410 100644 --- a/src-docs/src/views/datagrid/datagrid_height_options_example.js +++ b/src-docs/src/views/datagrid/datagrid_height_options_example.js @@ -41,7 +41,6 @@ const lineHeightFullSnippet = `const rowHeightsOptions = useMemo( columns={columns} columnVisibility={{ visibleColumns, setVisibleColumns }} rowCount={rowCount} - height={400} renderCellValue={renderCellValue} rowHeightsOptions={rowHeightsOptions} /> @@ -74,17 +73,8 @@ const rowHeightsFullSnippet = `const rowHeightsOptions = useMemo( columns={columns} columnVisibility={{ visibleColumns, setVisibleColumns }} rowCount={rowCount} - height={400} renderCellValue={renderCellValue} - inMemory={{ level: 'sorting' }} - sorting={{ columns: sortingColumns, onSort }} rowHeightsOptions={rowHeightsOptions} - pagination={{ - ...pagination, - pageSizeOptions: [50, 250, 1000], - onChangeItemsPerPage: onChangeItemsPerPage, - onChangePage: onChangePage, - }} /> `; @@ -114,17 +104,8 @@ const autoRowHeightsFullSnippet = `const rowHeightsOptions = useMemo( columns={columns} columnVisibility={{ visibleColumns, setVisibleColumns }} rowCount={rowCount} - height={400} renderCellValue={renderCellValue} - inMemory={{ level: 'sorting' }} - sorting={{ columns: sortingColumns, onSort }} rowHeightsOptions={rowHeightsOptions} - pagination={{ - ...pagination, - pageSizeOptions: [50, 250, 1000], - onChangeItemsPerPage: onChangeItemsPerPage, - onChangePage: onChangePage, - }} /> `;