almende / chap-links-library

a web based visualization library for displaying graphs, networks, and timelines
http://almende.github.com/chap-links-library
Apache License 2.0
599 stars 167 forks source link

Drop from other panels into the Timeline #150

Open alex-riviera opened 11 years ago

alex-riviera commented 11 years ago

Hi, I'm looking for a way to add items (located in a different panel) to the correct place in the timeline by dropping them there. Does the timeline support drop from other panels? How would it be possible to do so? Thanks in advance.

josdejong commented 11 years ago

This is indeed not supported currently. This would need integration with one or a number of drag-and-drop libraries (like the one of jquery). There is also native HTML5 drag and drop but that is quite a difficult story.

ova2 commented 11 years ago

I need the same feature. I can imagine such integration very well (with jQuery draggable / droppable). Probably I can work on this issue soon (depends on customer's needs).

donalmcateer commented 10 years ago

Hi ova2,

did you make any progress with integration JQuery DND? I am trying to drag from a tree onto the timeline and trgger adding and event on drop.

ova2 commented 10 years ago

I didn't touch the native Timeline script. I integrated it seemless in my JSF component. Look: http://fractalsoft.net/primeext-showcase-mojarra/sections/timeline/dnd.jsf

It's easy, simple look at the code for click event in the native Timeline script.

donalmcateer commented 10 years ago

Thanks Oleg,

I am using AngularJS to implement my project, but I will have a look at your code and see if I can apply it,

regs Donal

On 16 December 2013 10:08, Oleg Varaksin notifications@github.com wrote:

I didn't touch the native Timeline script. I integrated it seemless in my JSF component. Look: http://fractalsoft.net/primeext-showcase-mojarra/sections/timeline/dnd.jsf

It's easy, simple look at the code for click event in the native Timeline script.

— Reply to this email directly or view it on GitHubhttps://github.com/almende/chap-links-library/issues/150#issuecomment-30642616 .

Donal McAteer +358 50 4802117