{#if subfilter && subfilter !== "null"}
{/if}
{@render table_region({
region: "main",
rows: lazy_data.rows,
on_cell_click: (ev: MouseEvent, coords: Coords) => {
if (ev.metaKey || ev.ctrlKey) {
set_selections([
coords,
...selections
.filter((sel) => !coords_eq(sel.coords, coords))
.map((sel) => sel.coords),
]);
} else if (ev.shiftKey) {
move_cursor(coords, { additive: true });
} else {
move_cursor(coords);
}
},
})}
{lazy_data.count} records total
{#if lazy_data.count > lazy_data.rows.length}
({lazy_data.count - lazy_data.rows.length} hidden; use filters to narrow
your search)
{/if}