new ListApi()
Common methods for Lists and Collections.
- Source:
- module/api/list-api.js, line 5
Methods
-
$asList(_filter) → {ListApi}
-
Generates a new list from this one.
If called without arguments, the list is popupated with the same contents as this list.
If there is a pending async operation on the host collection/list, then this method will return an empty list and fill it when the async operation finishes. If you don't need the async behavior then use
$type.list
directly to generate a new list.Parameters:
Name Type Description _filter
function A filter function that should return the list contents as an array.
- Source:
- module/api/list-api.js, line 26
Returns:
list
- Type
- ListApi