Skip to content

Commit

Permalink
prop documentation of behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Oct 17, 2024
1 parent 29b913a commit ce84874
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/eui/src/components/datagrid/data_grid_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,10 @@ export type CommonGridProps = CommonProps &
sorting?: EuiDataGridSorting;
/**
* A callback for when a column's size changes. Callback receives `{ columnId: string, width: number }`.
*
* When an `onColumnResize` function is passed, `columns[].initialWidth` behaves like a
* controlled (rather than uncontrolled) prop, and can be used to completely manage column
* widths even after initial mount.
*/
onColumnResize?: EuiDataGridOnColumnResizeHandler;
/**
Expand Down

0 comments on commit ce84874

Please sign in to comment.