I have one item. And item is fixed for item.start, and item shall not be moved. I need to change just item.end.
I was trying something. For example if item.class name is record-scheduled, item.start should be in the future. This code worked. But I couldn't build for start is constant.
  onMoving: function (item, callback) {
    if(item.className == 'record-scheduled'){
      var min = moment()
      var max = moment(item.start).add(6,'hours')
      if (item.start < min) item.start = min;
      if (item.start > max) item.start = max;
      if (item.end   > max) item.end   = max;
      callback(item); // send back the (possibly) changed item
    }else if(item.className == 'record-finished'){
      callback(null)
    }else if(item.className =='record-active'){
      callback(item)
    }
    else{
      callback(item)
    }
    
  },
My timeline options:
options: {
    editable: true,
    stack: false,
    start:moment().format(), 
}
explain is briefly:
else if(item.className =='record-active'){
item.start = 'cannot be changed'
item.end = 'can be change'
item.draggable = 'cannot be draggable'
}
How could i solve it?
Thanks, Regards.