nomcopter / react-mosaic

A React tiling window manager

Home Page:https://nomcopter.github.io/react-mosaic/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drag-to-create windows

t3db0t opened this issue · comments

How would we accomplish drag-to-create, say using Blueprint's own Tree? I.e. click on an item in the tree and drag into the windowed area to create a new window.

I can't tell from looking at the current API how this would be accomplished...

It should be possible by creating your own DragSource that uses MosaicDragType.WINDOW. Then, if you implement endDrag in a similar fashion to MosaicWindow, you should be able to create a new window.

Let me know if that doesn't work for you.

Thanks so much, I will take a stab at this!