| Page 1 of 1 | [ 4 posts ] |
|
I have ul element that must be drop target, and not draggable by itself. The code below makes it draggable.
Code: var ddlUl = new Y.DD.Delegate( { container: '#play', nodes: 'ul', target: true //Add in this attribute to add drop delegation capabilities }); Ultimatelly I want to have nested drop targets, so in some li in this ul to have another drop target. |
|
Basically you need to set the UL as a `Y.DD.Drop` target, then use Y.DD.Delegate to make the LI's in the list draggable and droppable.
|
|
Yes, I have done it that way.
However, there is no "delegation" (of drop targets) in this approach, so when my nested drop target is dynamically created in the list, I need to make manually another Y.DD.Drop instance. I wanted to avoid that, with some kind of delegation, but maybe Y.DD.Delegate is not intended for such use case. |
|
Right, Target's are not supported with Delegate. Only drags are.
|
| Page 1 of 1 | [ 4 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group