Scroll to top
Published at Oct 15, 2024
Name
On stock
Price
Sprouts - Onion
972
261.51
Beer - True North Lager
38
191.32
Milk - Condensed
714
826.1
Brandy Cherry - Mcguinness
212
555.07
Olive - Spread Tapenade
509
506.45
Tea - Black Currant
848
750.65
Coconut Milk - Unsweetened
149
658.56
Nut - Walnut, Pieces
147
763.42
Apple - Northern Spy
950
81.35
Orange - Canned, Mandarin
200
939.59
Veal - Brisket, Provimi,bnls
226
353.49
Wine - Ice Wine
618
867.85
Table Cloth 54x72 White
770
703.86
Wine - Cotes Du Rhone Parallele
435
967.56
Wine - Duboeuf Beaujolais
105
247.42
Carrots - Jumbo
350
880.11
Wine - Touraine Azay - Le - Rideau
290
949.68
Schnappes Peppermint - Walker
69
879.93
Wine - Champagne Brut Veuve
201
496.79
Appetizer - Smoked Salmon / Dill
856
274.6
Campari
347
138.14
Smoked Paprika
315
457.74
Soup - Tomato Mush. Florentine
899
75.56
Yogurt - Strawberry, 175 Gr
641
587.04
Wine - Red, Cooking
380
889.99
Tea - Darjeeling, Azzura
970
383.47
Temperature Recording Station
215
306.87
Juice - Happy Planet
689
952.35
Glass - Juice Clear 5oz 55005
761
498.95
Capers - Ox Eye Daisy
442
897.46
Turkey Leg With Drum And Thigh
916
26.08
Wine - Beringer Founders Estate
419
455.37
Wine - Chardonnay South
652
338.28
Cocktail Napkin Blue
825
420.85
Arctic Char - Fillets
860
407.78
Spice - Peppercorn Melange
246
974.88
Island Oasis - Mango Daiquiri
618
265.21
Veal - Slab Bacon
380
976.44
Hot Chocolate - Individual
345
347.85
Eggwhite Frozen
965
435.32
Cheese - Gouda
284
452.15
Cattail Hearts
239
664.81
Squash - Pepper
684
376.91
Shrimp - Black Tiger 6 - 8
166
332.96
Wine - Mas Chicet Rose, Vintage
540
94.3
Island Oasis - Mango Daiquiri
148
374.05
Mint - Fresh
738
772.92
Butter - Unsalted
223
606.6
Straw - Regular
97
830.06
Blackberries
647
220.54
Implementation
By default scroll to top button is placed in footer component.
You can change it to your liking.
options: {
footer: { display: true }
}
Datagrid component
<script lang="ts">
import { setContext } from 'svelte';
import { columns } from './columns.svelte';
import { inventoryData as data } from '$lib/data/inventory';
import { TzezarDatagrid } from '$lib/datagrid/tzezar-datagrid.svelte';
import * as Datagrid from '$lib/datagrid';
let datagrid = setContext(
'datagrid',
new TzezarDatagrid({
data: data.slice(0, 50),
columns,
options: {
pagination: { display: false },
footer: { display: true }
}
})
);
</script>
<Datagrid.Datagrid class={{wrapper: 'max-h-[600px]'}}>
{#snippet head()}
{#each datagrid.columns as column (column.id)}
<Datagrid.Header {column} />
{/each}
{/snippet}
{#snippet body()}
{#each datagrid.data as row, rowIndex}
<Datagrid.Row {rowIndex}>
{#each datagrid.columns as column, columnIndex}
{@const props = { row, rowIndex, column, columnIndex }}
{#if column.id === 'product.name'}
<Datagrid.Cell
{...props}
class={{ data: 'overflow-hidden text-ellipsis text-nowrap' }}
/>
{:else}
<Datagrid.Cell {...props} />
{/if}
{/each}
</Datagrid.Row>
{/each}
{/snippet}
</Datagrid.Datagrid>