
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!
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.
getDimension(paneId)or similar)2. Let the library handle it
splittable={true}or similar)splittablepane(row), it automatically splits into pieces.I think there can be some middle ground, so let's discuss!