Skip to content

[EuiDataGridColumnResizer] Migrate from class to function component #9470

@weronikaolejniczak

Description

@weronikaolejniczak

EuiDataGridColumnResizer handles column resize drag interactions within EuiDataGrid.

  • File: components/datagrid/body/header/column_resizer.tsx
  • Class size: 80 lines
  • State: initialX, offset
  • Lifecycle: None

Migration notes:

State-only, no lifecycle. Drag handling via mouse events. State maps to useState, event handlers stay as functions.

Acceptance criteria:

  • Convert to function component with useState
  • Maintain drag resize behavior
  • All existing tests pass
  • Verify no performance regressions in DataGrid column resizing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions