Can I enable/disable stateSave dynamically?

Can I enable/disable stateSave dynamically?

tangerinetangerine Posts: 3,365Questions: 39Answers: 395

I want to incorporate a toggle button to enable/disable stateSave.
I can use table.state.clear() to fake the switching off of stateSave, but the corresponding table.state.save(), although saving correctly, does not then stay in stateSave mode. Okay, I've no problem with that logic; doing a "save" is not the same as enabling stateSave mode.
It seems to me that I'm missing a simple way of establishing whether stateSave is "on" or "off". Any thoughts?

This discussion has been closed.