Skip to content

[EuiResizableContainer] Add support for onResizeStart and onResizeEnd callback props #6225

Closed

Description

@davismcphee

While implementing a resizable layout in Discover using EuiResizableContainer, we ran into some conflicts with react-reverse-portal. We were able to implement a workaround, but it involved setting up our own event listeners to watch for when resizing starts and ends.

It would simplify our use case a lot, and would probably be generally useful, if EuiResizableContainer accepted callback props for onResizeStart and onResizeEnd that would allow consumers to easily listen for when resizing starts and ends.

For our use case it's only important to listen for resizing triggered by a mouse click, but it might be worth considering whether these callbacks would apply to keyboard based resizing as well.

Activity

  1. added
    help wanted
    on Sep 9, 2022
  2. cee-chen commented on Sep 9, 2022

    @cee-chen
    Contributor

    This definitely seems like a reasonable ask! We might want to look into adding support for EuiResizablePanel as well at the same time.

    @davismcphee would someone on your team be open to opening a PR for EUI with this addition? The EUI team is currently fairly busy with the Emotion conversion, and this feels like a good first issue for another team to take on/help out with.

  3. davismcphee commented on Sep 9, 2022

    @davismcphee
    ContributorAuthor

    @constancecchen Definitely! I'll assign it to myself and work on it since I'll be needing it soonest anyways.

  4. self-assigned this
    on Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

good first issuehelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions