0
我有一個使用vis.js的Web應用程序,儘管我的onMove方法工作,onMoveGroup無法正常工作,我找不到任何此聯機示例。onMoveGroup示例爲vis.js
我的代碼是這樣的:
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: {
//...
},