Checkbox to exclude/include data table column

I would like to have a set of checkboxes which they determine what column in the datatabe should be displayed (through call back).

dt.DataTable(id='table_of_record',
                    columns=[{'name';i};
                    df.columns])

I used Display tables in Dash - so the question is answered over there.