Skip to content

Commit

Permalink
[Misc documentation cleanup] Remove unrequired props from snippets
Browse files Browse the repository at this point in the history
- to help focus more on rowHeightsOptions and more easily provide a bare minimum example
  • Loading branch information
cee-chen committed Nov 30, 2021
1 parent 7b2bf88 commit 84d91d7
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src-docs/src/views/datagrid/datagrid_height_options_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const lineHeightFullSnippet = `const rowHeightsOptions = useMemo(
columns={columns}
columnVisibility={{ visibleColumns, setVisibleColumns }}
rowCount={rowCount}
height={400}
renderCellValue={renderCellValue}
rowHeightsOptions={rowHeightsOptions}
/>
Expand Down Expand Up @@ -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,
}}
/>
`;

Expand Down Expand Up @@ -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,
}}
/>
`;

Expand Down

0 comments on commit 84d91d7

Please sign in to comment.