list
Creates a new property binding, for an iterable value (array, Map, ManagedList, and others).
static
list<S>(source: Binding.ValidPathString<S>): Binding<Iterable<any>>
Parameters
- source — The source property name or path
- defaultValue — An optional default value, that’s used instead of the bound value when undefined
Return value
A new Binding instance.
Example
// Bind a list view to a ManagedList (or array) property
ui.list(
{ items: bound.list("users") },
ui.row(
// ...content for each user
)
)
Related
- function bound(source, defaultValue?)Creates a new property binding.
- asList()Adds a filter, to make sure that the bound value is an iterable list.