{#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} class:striped > {#if item.children?.length} {/if} {#each columns as column, columnIndex} {@const value = item[column.key]}
{formatValue(value)}
{/each} {#if item.children && childrenOpen[item[key]]} selectChild(item[key], e.detail)} on:closeAll={closeAll} /> {/if} {/each}