0} class:contained> {#if actions?.length}
{#each actions as action} {/each}
{/if} {#if showHeaders && columns.some(col => col.title)} {#each columns as column} {/each} {/if} {#each _items as item (item[key])} select(item[key])} on:dblclick={() => doubleClick(item[key])} on:contextmenu|preventDefault={evt => showContextMenu(evt, item)} class:selected={activeKey === item[key] && !activeChildKey} > {#each columns as column} {@const value = item[column.key]} {/each} {#if item.children && childrenOpen[item[key]]} {/if} {/each}
{column.title || ''}
{#if item.children?.length} {/if} {#if typeof value !== 'object'} {value || ''} {/if}
selectChild(item[key], e.detail)} on:closeAll={() => (childrenOpen = {})} />