Skip to content
OGE logoOGE

Simple Table

oge-simple-table renders small lists — order lines, an audit log, a settings summary — as a native table whose rows you write yourself, with header cells that stay aligned and optional paging.

It is deliberately small: no sorting, filtering, selection, editing or virtualization, and no dependency on the grid package. Reach for the data grid when a list needs any of those. Screen readers get a real <table> — caption, column headers, cells — and a wide table scrolls inside its own labelled region on a narrow screen.

native table row templates aligned headers paging

Basics

Pass value and, optionally, columns — without them each own key of the first row becomes a column. The table is a native with a

and
headers; a column's align applies to its header and its cells alike.

value columns caption align
Order lines
SKU Product Qty Unit price
DSK-01 Oak desk 2 420
CHR-07 Mesh office chair 4 260
LMP-12 Desk lamp 6 45
SHF-03 Wall shelf 3 89

Row templates

An ogeSimpleTableRow template writes the whole of a row with free markup — badges, links, pipes. Bind [ogeSimpleTableRowOf] to the rows and let-line is typed under strictTemplates; columns[i].cellClass puts a cell on the same alignment as its header.

ogeSimpleTableRow ogeSimpleTableRowOf cellClass
SKU Product Qty Unit price
DSK-01 Oak desk 2 $840.00
CHR-07 Mesh office chair pending4 $1,040.00
LMP-12 Desk lamp backordered6 $270.00
SHF-03 Wall shelf 3 $267.00

paging shows pageSize rows with previous / next buttons and a range text that is announced politely. An ogeSimpleTableFooter template receives every row — not just the page — for totals, and ogeSimpleTableEmpty fills the full-width row shown without data.

paging pageSize [(pageIndex)] ogeSimpleTableFooter compact
Audit log
Time User Action
09:00 ayse signed in
09:04 mehmet exported a report
09:08 ali changed a role
09:12 ayse signed in
09:16 mehmet exported a report
12 events
1–5 of 12

Page 1