diff --git a/packages/eui/src-docs/src/views/datagrid/schema_columns/column_dragging.js b/packages/eui/src-docs/src/views/datagrid/schema_columns/column_dragging.js index b363d54b33c..92c96839da9 100644 --- a/packages/eui/src-docs/src/views/datagrid/schema_columns/column_dragging.js +++ b/packages/eui/src-docs/src/views/datagrid/schema_columns/column_dragging.js @@ -6,6 +6,9 @@ import { EuiAvatar, EuiToolTip, EuiButtonIcon, + EuiModal, + EuiModalBody, + EuiButton, } from '../../../../../src/components'; const CustomHeaderCell = ({ title }) => ( @@ -67,21 +70,33 @@ for (let i = 1; i < 5; i++) { } export default () => { + const [isOpen, setOpen] = useState(false); const [visibleColumns, setVisibleColumns] = useState( columns.map(({ id }) => id) ); return ( - data[rowIndex][columnId]} - /> + <> + setOpen(!isOpen)}>Toggle modal + {isOpen && ( + setOpen(false)}> + + + data[rowIndex][columnId] + } + /> + + + )} + ); };