Show/Hide columns with multi-value dropdown

Currently trying to make a table where I can select which rows and columns are visible from a dataframe. Im looking to do something similar to the “Modifying the data table content” section on this page, but from a dropdown with the multi argument set to true. Issue is, I am unsure how Dash manages the output from a multi valued dropdown, and how I can manage to use that to make the datatable more interactive.