Skip to content

Split a pane dynamically. #24

@junsikshim

Description

@junsikshim

dynamic-split

This is an issue to discuss how to implement splitting like the one above.

I can think of two ways,

1. It's all up to the developer.

  • The dropzones can be calculated with the dimensions of the panes. (Need getDimension(paneId) or similar)
  • Drag&Drop implementation is irrelevant to this library.
  • Pane(Row)s are only added/removed by JSX elements. (The developer must keep track of dynamic pane(row)s)

2. Let the library handle it

  • Have a property enable such feature. (splittable={true} or similar)
  • When some valid component is dropped into splittable pane(row), it automatically splits into pieces.
  • The current status of panes and rows is now different with the JSX elements, so in order to get the current elements, some APIs may needed.

I think there can be some middle ground, so let's discuss!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions