vis-timeline icon indicating copy to clipboard operation
vis-timeline copied to clipboard

Enable range item editing except change start and end time

Open neoburgos opened this issue 5 years ago • 2 comments

How can I disable the manipulation of its duration in an range item, allowing to move it, but not change its duration?

Is that possible? I cant see this option

// enable or disable all manipulation actions
var options = {
  editable: true       // true or false
};

// enable or disable individual manipulation actions
var options = {
  editable: {
    add: true,         // add new items by double tapping
    updateTime: true,  // drag items horizontally
    updateGroup: true, // drag items from one group to another
    remove: true,       // delete an item by tapping the delete button top right
    overrideItems: false  // allow these options to override item.editable
  }
};

neoburgos avatar Jan 31 '20 09:01 neoburgos

+1

also need that behavior. updateTime should be separated to 2 flags.

razbensimon avatar Feb 13 '20 16:02 razbensimon

+1

this would be really handy for my use case, to rearrange items which have all a fixed duration because of the fixed data they represent.

WuGGu avatar Sep 28 '23 10:09 WuGGu