almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs
7.85k stars 1.48k forks source link

Restrict item to specific groups when dragging on timeline #4268

Closed pleek91 closed 5 years ago

pleek91 commented 5 years ago

Is it possible to make an item's group editable when dragging it on the timeline but to restrict which groups it can be dragged to? I have a few groups that I don't ever want an event to be dragged on to. And I have items that I never want dragged out of a list of specific groups.

Searched the docs and stackoverflow but not coming up with anything

pleek91 commented 5 years ago

onMoving is the answer.

http://visjs.org/docs/timeline/#Editing_Items