Skip to content

Commit

Permalink
[DOCS] Added info onColumnResize props and updated link to types in E…
Browse files Browse the repository at this point in the history
…uiDataGrid (#3609)

* Added onColumnResize props and updated link in docs

* Formatting

Co-authored-by: Chandler Prall <[email protected]>

* Added white space befor EuiCode

Co-authored-by: Chandler Prall <[email protected]>
  • Loading branch information
ashikmeerankutty and chandlerprall authored Jun 15, 2020
1 parent b4033c3 commit 8ff1efb
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src-docs/src/views/datagrid/datagrid_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,15 @@ const gridConcepts = [
</span>
),
},
{
title: 'onColumnResize',
description: (
<span>
A callback for when a column&apos;s size changes. Callback receives{' '}
<EuiCode>&#123; columnId: string, width: number &#125;</EuiCode>
</span>
),
},
];

export const DataGridExample = {
Expand Down Expand Up @@ -383,9 +392,9 @@ export const DataGridExample = {
explanation on the lower level object types. The majority of the
types are defined in the{' '}
<a
href="https://github.com/elastic/eui/tree/master/src/components/data_grid/data_grid_types.ts"
href="https://github.com/elastic/eui/tree/master/src/components/datagrid/data_grid_types.ts"
target="_blank">
/data_grid/data_grid_types.ts
/datagrid/data_grid_types.ts
</a>{' '}
file.
</p>
Expand Down

0 comments on commit 8ff1efb

Please sign in to comment.