Column visibility

const view = table.createView([
    { index: 0, name: 'ID', isVisible: false },
    { index: 1, name: 'First name' },
    { index: 2, name: 'Last name' },
    { index: 3, name: 'Email' },
])
{#each view.columns as column}
    <button type="button" 
        class:active={column.isVisible}
        onclick={() => column.toggle()}
    >
        {column.name}
    </button>
{/each}
ID
First Name
Last Name
Email
1SallyannCurnnokkscurnnokk0@fc2.com
2AlixLavignealavigne1@telegraph.co.uk
3BeliaGormanbgorman2@odnoklassniki.ru
4WesGullyeswgullyes3@netscape.com
5KarlynHaltkhalt4@upenn.edu
6MeggiYoungemyounge5@blogs.com
7DouglassKynddkynd6@godaddy.com
8JessePattemorejpattemore7@mozilla.org
9EttiGowrichegowrich8@google.ca
10MeaghanPetrinampetrina9@merriam-webster.com