when I change any thing on my gantt chart the length of stm increases as well but I want to do undo the changes on gantt and I am doing so
this.$refs.gantt.instance.project.stm.undo();
But it does noting. how to fix this problem?
Re: [VUE 2] how to undo through stm?
Posted: Thu May 12, 2022 5:14 pm
by mats
Can you please upload a full test case that we can run and debug?
Re: [VUE 2] how to undo through stm?
Posted: Fri May 13, 2022 9:55 am
by raghees
ah sorry I cannot send you that I am using in my existing project and I cannot separate this module. Is there any other way to debug so you can show the issue?
const gantt = new Gantt({
appendTo : 'container',
dependencyIdField : 'wbsCode',
project : {
transport : {
load : {
url : '../_datasets/launch-saas.json'
}
},
autoLoad : true,
// The State TrackingManager which the UndoRedo widget in the toolbar uses
stm : {
autoRecord : true
},
// Reset Undo / Redo after each load
resetUndoRedoQueuesAfterLoad : true
},
Re: [VUE 2] how to undo through stm?
Posted: Mon May 16, 2022 8:57 am
by raghees
Thank you for the reply, basically I want to undo through the code instead of clicking on the button. It is working from the toolbar header but I want to do through code. Is there any way to do so?