IDataTableGroupableItem

interface
Data Display

Minimal discriminated-union marker for a data row node in a grouped DataTable tree. Carries a type="item" literal to distinguish row nodes from IDataTableGroup group nodes.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

type
required
'item'
Discriminant literal — always "item". Distinguishes data row nodes from group nodes (type: "group") in the mixed tree.
raw
required
T
The original data object for this row.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Type-narrowing in a custom cell renderer

typescript