Row pinning
Pin rows to the top or bottom of the table for improved visibility while scrolling.
Example
Id
Name
Category
Price Retail
Status
📌
1
Luxurious Bamboo Tuna
Clothing
266.92
discontinued
📌
2
Fantastic Bronze Table
Sports
124.8
low-stock
📌
3
Handcrafted Concrete Cheese
Home & Garden
480.58
in-stock
📌
4
Ergonomic Steel Cheese
Clothing
127.56
low-stock
📌
5
Sleek Concrete Hat
Sports
77.61
in-stock
📌
6
Modern Gold Salad
Home & Garden
321.32
in-stock
📌
7
Gorgeous Aluminum Cheese
Clothing
41.82
low-stock
📌
8
Handmade Plastic Shirt
Sports
487.32
low-stock
📌
9
Ergonomic Wooden Keyboard
Sports
485.29
in-stock
📌
10
Frozen Bamboo Soap
Electronics
165.47
in-stock
Per page:
Page 1 of 100
Showing
1
to
10
of 1000 rows
{#each datagrid.columns.getLeafColumnsInOrder() as column}
{@render LeafHeader(column)}
{/each}
{#each datagrid.rows.getVisibleRows() as row}
{/if}
{/each}
{#if !row.isGroupRow()}
{#each datagrid.columns.getLeafColumnsInOrder() as column}
{@render RenderBodyCell(column, row)}
{/each}
{:else}{/if}
{#if row.isExpanded()}
Evil cannot create anything new, they can only corrupt and ruin what good forces
have invented or made.
{getCellContent(column, row.original)}
{/if}
{/snippet}
{#snippet LeafHeader(column: LeafColumn)}
{#if column.isVisible()}
{column.header}