Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag-to-create windows #122

Closed
t3db0t opened this issue Oct 16, 2019 · 2 comments
Closed

Drag-to-create windows #122

t3db0t opened this issue Oct 16, 2019 · 2 comments

Comments

@t3db0t
Copy link

t3db0t commented Oct 16, 2019

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...

@nomcopter
Copy link
Owner

nomcopter commented Nov 7, 2019

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.

@t3db0t
Copy link
Author

t3db0t commented Nov 7, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants