-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
demo: nested drop #2590
demo: nested drop #2590
Conversation
ec75e30
to
009d71d
Compare
- add button to create a subgrid with widgets inside - add a draggable subgrid with widgets inside
<a class="btn btn-primary" onClick="addNested()" href="#">Add Widget With Nested Content</a> | ||
<div style="width: 100px;"> | ||
<div | ||
class="gridstack-add-widget grid-stack-item ui-draggable" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this isn't the right way (and event handler below) to drag a nested grid... but I will commit your change and modify afterward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will wait for your solution then ^^ I know about the possibility of modifying the helper of setupDragIn, however I stumbled upon this issue #2231 and decided not to use it anymore (I don't remember what my path of thoughts was)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've commited my changes this morning to the demo... 'dropped' event is better suited, but you would need the custom attr if you have more than 1 item type to drag in (not case of demo).
better fix for gridstack#2590 - more todo..
more for gridstack#2590
more for gridstack#2590
Description
show how to add a subgrid with widgets inside either programmatically or by drag and drop. what do you think?