0
私はvis.jsとeventを使ってWebアプリケーションを持っていますが、onMoveのメソッドが機能していてもonMoveGroupは機能しません。このオンラインの例は見つかりません。vis.jsのonMoveGroupの例
私のコードは次のようである:
onMove: function (item, callback) {
console.log("onMove", item, callback)
},
onMoveGroup: function (item, callback) {
console.log("onMoveGroup", item, callback)
},
これは私のタイムラインオプションの初めがある方法です。
var timelineOptions = {
height: "100%",
stack: false,
hiddenDates: [],
orientation: 'top',
selectable: true,
zoomable: true,
multiselect: true,
multiselectPerGroup: true,
zoomKey: 'ctrlKey',
//throttleRedraw: 250,
start: moment.preprocessDate().startOf('week').subtract(6, 'days'),
end: moment.preprocessDate().add(userTimelineRange, 'days'),
timeAxis: {scale: 'weekday', step: 1},
format: {
minorLabels: {
'weekday': 'DD [(][K][W]W[)]',
'day': 'DD [(][K][W]W[)]'
}
},
showMajorLabels: true,
groupOrder: function (a, b) {
return a.order - b.order;
},
editable: {
//...
},