Home > @polyspec/crudui-generator-core > buildList
buildList() function
Compose a list spec and build its ListViewModel. rows are injected (no DB access); each cell value is read from a row by the column field path. Invalid input fails with the messages in the display format specification, and an unresolved $ref throws ComposeLoadError (never a silent render).
Signature:
export declare function buildList(listSpec: Record<string, unknown>, rows?: Array<Record<string, unknown>>, options?: BuildListOptions): ListViewModel;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
listSpec |
Record<string, unknown> | |
|
rows |
Array<Record<string, unknown>> |
(Optional) |
|
options |
(Optional) |
Returns: