Hide/show columns during run-time by code

I need to hide/show columns during run-time by code. So not with using the context menu, but as result of an button click. How can this be done?

I found the solution myself here: https://docs.handsontable.com/pro/1.18.1/demo-hiding-columns.html.

Thank you for an update.

I guess that we can close this topic then.