Minimal CDK DataSource that bridges a Signal to the CDK table's Observable-based data contract
CngxDataSource
ClassPrimaryv0.1.0
extends DataSource
projects/common/data/data-source/data-source.ts
Import#
import { CngxDataSource } from '@cngx/common/data'
Description#
Minimal CDK DataSource that bridges a Signal to the CDK table's
Observable-based data contract.
No sort, filter, or search logic is included - the consumer builds a
computed() with any transformations and passes the result here.
readonly processed = computed(() => {
let items = this.raw();
if (this.sort().sort()) { items = sortTree(items, ...); }
return items;
});
readonly dataSource = injectDataSource(this.processed);Metadata#
Dependencies#
Signalconstructor