Dojo NG is being built in the open, one section at a time — follow along on Heptapod.

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.

Try it in the playground

@dojo-ng/grid · v0.1.1

npm install @dojo-ng/grid

import "@dojo-ng/grid";

Properties

PropertyAttributeTypeDefault
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; }