Skip to content

Commit

Permalink
[REVERT ME] test datagrid full screen bug when nested within accordion
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Sep 13, 2022
1 parent c9d341d commit 052e679
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions src-docs/src/views/datagrid/basics/datagrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { Link } from 'react-router-dom';
import { fake } from 'faker';

import {
EuiAccordion,
EuiButton,
EuiButtonEmpty,
EuiButtonIcon,
Expand Down Expand Up @@ -411,25 +412,27 @@ export default () => {
});

return (
<DataContext.Provider value={raw_data}>
<EuiDataGrid
aria-label="Data grid demo"
columns={columns}
columnVisibility={{ visibleColumns, setVisibleColumns }}
trailingControlColumns={trailingControlColumns}
rowCount={raw_data.length}
renderCellValue={RenderCellValue}
inMemory={{ level: 'sorting' }}
sorting={{ columns: sortingColumns, onSort }}
pagination={{
...pagination,
pageSizeOptions: [10, 50, 100],
onChangeItemsPerPage: onChangeItemsPerPage,
onChangePage: onChangePage,
}}
onColumnResize={onColumnResize.current}
ref={gridRef}
/>
</DataContext.Provider>
<EuiAccordion id="fdsfasdf" buttonContent="fullscreen testing">
<DataContext.Provider value={raw_data}>
<EuiDataGrid
aria-label="Data grid demo"
columns={columns}
columnVisibility={{ visibleColumns, setVisibleColumns }}
trailingControlColumns={trailingControlColumns}
rowCount={raw_data.length}
renderCellValue={RenderCellValue}
inMemory={{ level: 'sorting' }}
sorting={{ columns: sortingColumns, onSort }}
pagination={{
...pagination,
pageSizeOptions: [10, 50, 100],
onChangeItemsPerPage: onChangeItemsPerPage,
onChangePage: onChangePage,
}}
onColumnResize={onColumnResize.current}
ref={gridRef}
/>
</DataContext.Provider>
</EuiAccordion>
);
};

0 comments on commit 052e679

Please sign in to comment.