Data grid / API

foldkit-mixins-data-grid

foldkit-mixins-data-grid — a foldkit-data-grid grid drawn through slots.

foldkit-data-grid holds the grid's state and geometry and draws nothing. This package draws the grid as a WAI-ARIA grid: only the rows and columns the viewport shows, every cell's logical row and column in ARIA, one tab stop, and the keyboard moving focus. Every element is a Slot, so an application styles it the way it does any other SlotView; the geometry the virtual window depends on is protected from attachments.

Functions

GridLegendA legend of the marks, each beside a swatch drawn by the same rules as the cells (GridMarkStyle styles both), so the two cannot drift apart.
MoreOnScrollSends the grid's onMore as its More button comes within 200px of the grid's visible box, and again after each load while the button stays there; the button…

Values

DataGridView
GridLegendSlots
GridLegendStyleThe legend's look, its swatches drawn by the cells' own rules.
GridMarks
GridMarkStyleThe marks on the grid's cells. Attach after GridStyle, whose plain dot it replaces by name.
GridSlots
GridStyleEvery piece is in the components layer, so an application's own layer wins.

Interfaces

CellMarkA state the application gives one cell, such as an edit not yet saved. The grid draws its name as data-mark on the cell's Slot, for a style, and its…
ColumnSortHow a column is sorted, and the Message that sorts it next: foldkit-crud's Sort gives these.
GridInputWhat the grid's view reads, and what the application gives it.
GridLegendInput
GridLegendWordsThe words for each mark, and the legend's own label.
GridWords

Types