Skip to content
Shamar

Tables overview

Table chrome is provided by the Adonis host.
static table(table: TableBuilder) {
return table
.defaultSort('name', 'asc')
.defaultFilters([{ field: 'resolved', value: false, label: 'Resolved: No' }])
.schema([
TextColumn.make('name').searchable().sortable(),
])
}

List routes render searchable, filterable, groupable tables with pagination, bulk actions, and sticky headings.

Method Purpose
.schema([columns]) Column list
.defaultSort(field, direction) Initial sort
.defaultFilters([...]) Pre-applied filters
.defaultGroupBy(field) Initial grouping

See TextColumn for all column format modifiers.