diff --git a/src-docs/src/views/datagrid/datagrid_example.js b/src-docs/src/views/datagrid/datagrid_example.js index 0084d15f759..5e6123c2446 100644 --- a/src-docs/src/views/datagrid/datagrid_example.js +++ b/src-docs/src/views/datagrid/datagrid_example.js @@ -9,6 +9,7 @@ import { EuiDescriptionList, EuiCodeBlock, EuiText, + EuiLink, EuiSpacer, } from '../../../../src/components'; @@ -107,6 +108,14 @@ const gridSnippet = ` rowHover: 'highlight', header: 'shade', }} + // Optional. Allows configuring the heights of grid rows + rowHeightsOptions={{ + defaultHeight: 34, + rowHeights: { + 0: auto + }, + lineHeight: '1em', + }} // Optional. Provide additional schemas to use in the grid. // This schema 'franchise' essentially acts like a boolean, looking for Star Wars or Star Trek in a column. schemaDetectors={[ @@ -222,6 +231,20 @@ const gridConcepts = [ description: 'The total number of rows in the dataset (used by e.g. pagination to know how many pages to list).', }, + { + title: 'rowHeightsOptions', + description: ( + + Allows configuring both default and specific heights of grid rows. + Accepts a partial EuiDataGridRowHeightsOptions object. + See{' '} + + Data grid row heights options + {' '} + for more details and examples. + + ), + }, { title: 'gridStyle', description: (