diff --git a/src-docs/src/views/datagrid/datagrid_ref_example.js b/src-docs/src/views/datagrid/datagrid_ref_example.js index 9345f4d75c0..d3ab45bf471 100644 --- a/src-docs/src/views/datagrid/datagrid_ref_example.js +++ b/src-docs/src/views/datagrid/datagrid_ref_example.js @@ -14,6 +14,9 @@ const dataGridRefSource = require('!!raw-loader!./ref'); const dataGridRefSnippet = `const dataGridRef = useRef(); +// Mnaually toggle the data grid's full screen state +dataGridRef.current.setIsFullScreen(true); + // Mnaually focus a specific cell within the data grid dataGridRef.current.setFocusedCell({ rowIndex, colIndex }); `; @@ -37,6 +40,13 @@ export const DataGridRefExample = { the ref prop of EuiDataGrid. These methods are: