Skip to content
HomePagesHomePages template kit

chooseFrom

Rows the model picks from the row's own select vocabulary — `count.min`..`count.max` of them, steered by `pick` prose.

Rows the model picks from the row’s own select vocabulary — count.min..count.max of them, steered by pick prose. The vocabulary is NOT restated here; the executor reads it off the inner select slot’s own values, exactly as a listFill on a select-element list does one level up.

Without count, the same builder declares a meta.display entry’s fill — the model chooses ONE case from the entry’s declared cases; there is no count to author. The overloads keep the two apart: a record list’s fill: takes only the counted form.

Import from @homepages/template-kit.

function chooseFrom(i: { count: { min: number; max: number; }; pick: string; }): ChosenRows
function chooseFrom(i: { pick: string; }): DisplayChoice
Name Type Required Description
i { count: { min: number; max: number }; pick: string } required

ChosenRows