View as Markdown

API reference: @salmonui/data-grid/engine/hierarchy

createChildDataSourcefunction

import { createChildDataSource } from '@salmonui/data-grid/engine/hierarchy';
function createChildDataSource<Child>(source: readonly Child[] | DataSource<Child>, scope: ChildScope): DataSource<Child>;

Data source of one child grid. Arrays and local sources are indexed by relation key once per rows identity and read in O(1) per child grid; remote and live sources receive the relation filter ANDed before the child grid's own filters. Added rows get the relation value when missing.