{#if viewlet?.descriptor === view.viewlet.Table}
{ // Download it const filename = 'vacancies' + new Date().toLocaleDateString() + '.csv' const link = document.createElement('a') link.style.display = 'none' link.setAttribute('target', '_blank') link.setAttribute( 'href', 'data:text/csv;charset=utf-8,%EF%BB%BF' + encodeURIComponent(tableToCSV('vacanciesData')) ) link.setAttribute('download', filename) document.body.appendChild(link) link.click() document.body.removeChild(link) }} /> {/if}
(search = e.detail)} />
(resultQuery = e.detail)} /> {#if loading}
{:else if viewlet && viewlet?.$lookup?.descriptor?.component}
{/if}