{#key result} {#if view === 'table'} ({ key: c.key, title: c.key })) || []} showHeaders={true} items={result.results || []} bind:activePath on:trigger={e => openJson(e.detail?.itemKey)} /> {:else if view === 'list'} openJson(e.detail?.itemKey)} /> {/if} {/key}
{#key result} Results: {result.total || 0} {/key}
{#each [ 1, 5, 10, 25, 50, 100, 200 ] as value} {#if submittedForm?.limit} {#each Array(lastPage).fill('').map((_, i) => i * submittedForm.limit) as value} {/if}