API REFERENCE · DATA DISPLAY
<dj-grid>
A data grid from columns + rows. Click a sortable header to sort (emits dj-sort). Functional core: no virtualization, paging, editing, or column resize yet. Part: table.
npm install @dojo-ng/grid
import "@dojo-ng/grid";
Properties
| Property | Attribute | Type | Default |
|---|---|---|---|
columns |
columns |
GridColumn[] |
[] |
rows |
rows |
Record<string, unknown>[] |
[] |
Events
dj-sort
CSS parts
Style these with dj-grid::part(name).
table
Types
The types that the properties above use, as they are declared in the source.
GridColumn
export interface GridColumn { id: string; title: string; sortable?: boolean; }