--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
--
Eric-
I agree with your approach for a drag/drop treeview type solution. However, this is not that simple. I’m building a layout manager that lets you drag & drop widgets around the page (add, move, delete, etc.). As you are dragging, I need to insert a placeholder to shift things around to show where the drop will occur if you let go now. This includes adding widgets above/below existing widgets, causing new columns to get created, or new rows. So to do this ahead of time I’d have to build in a top/bottom/colright/colleft/rowtop/rowbottom element on every single widget. That’s a lot of excess HTML rather than just injecting the placeholder where it needs to be depending on where the current dragover is occurring.
Thanks for everyone’s input!
Kevin
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/BK5g2T77frY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
Hi Kevin,
A insert before is easily mimicked with plain js.
something like this will do:
function inserBefore(elem,newElem) {
elem.parentNode.insertBefore(elem,newElem);
}
You need to use the plain DOM elements, not the wrapped ones (elem[0] most off the time!)
Regards
Sander