Reset redo/undo index [Tabulator]

112 Views Asked by At

I am using tabulator with the options redo/undo active. After saving the table to sql, I like to reset the redo/undo index to -1, so that the user cant use this options, because the data has already been saved.

Thanks in advance,

DJ

2

There are 2 best solutions below

1
On

I tried your sollution, and yes it works. Many thanks.

Adding it as a standard functionallity would be great.

Another thank for this.

DJ

0
On

There is no built in functionality for this (though that is a great idea, i will add it to the roadmap for the next release.

In the mean time refreshing the table data should do it:

table.setData(table.getData());