{#await buildModel({ client, _class, keys: config, lookup })} {:then model} { width = element.clientWidth }} class="antiTable" class:metaColumn={enableChecking || showNotification} class:highlightRows > {#if !hiddenHeader} {#if enableChecking || showNotification} {/if} {#each model as attribute} {/each} {/if} {#if objects.length || objectsRecieved} {#each objects as object, row (object._id)} onRow(object)} on:focus={() => {}} bind:this={refs[row]} on:contextmenu|preventDefault={(ev) => { if (!readonly) { showMenu(ev, object, row) } }} > {#if enableChecking || showNotification} {/if} {#each model as attribute, cell} {/each} {/each} {:else if loadingProps !== undefined} {#each Array(getLoadingLength(loadingProps, options)) as i, row} {#each model as attribute, cell} {#if !cell} {#if enableChecking} {/if} {/if} {/each} {/each} {/if}
{#if enableChecking && objects?.length > 0}
0}> 0} on:value={(event) => { check(objects, event.detail) }} />
{/if}
changeSorting(attribute.sortingKey)} >
{#if attribute.label}
{#if showNotification}
{#if enableChecking}
{ check([object], event.detail) }} />
{/if}
{:else}
{ check([object], event.detail) }} />
{/if}
{#if loading > 0}{/if} {/await} {#if showFooter && total}
{/if}