ufTable: Using getTableStateVars method

In the tables documentation, there seems to be two possible methods that can be used, with getTableStateVars as one.

I want to use this method in my JS code after the table has been created but I’m having issues. Here are things I’ve tried:


What’s the correct way to call this method?