Specify visible columns for Grid viewer as viewer options

Is there a way to specify a list of visible / hidden columns on tableview.addViewer(‘Grid’…) call? I was not able to find any reference on supported options in your documentation.

Here’s a runnable snippet: https://public.datagrok.ai/js/samples/grid/hide-columns

Two ways to hide columns:

let table = grok.data.demo.demog();
let view = grok.shell.addTableView(table);

// Hiding columns in a specific grid
view.grid.columns.setVisible(['age', 'site', 'race']);

// Hiding columns by adding '~' prefix to column names affects all views
table.columns.byName('sex').name = '~sex';
grok.shell.addTableView(table);```