An object returned by the bindTo()
method
providing functions that specify the type of the binding.
See the bindTo()
documentation for examples.
Type parameters
Methods
-
as( Class ) → void
module:utils/collection~CollectionBindToChain#as
Creates the class factory binding in which items of the source collection are passed to
the constructor of the specified class.
Parameters
Class
:
new ( S ) => T
The class constructor used to create instances in the factory.
Returns
void
-
-
using( callbackOrProperty ) → void
module:utils/collection~CollectionBindToChain#using
Creates a callback or a property binding.
Parameters
callbackOrProperty
:
keyof S | ( S ) => ( null | T )
When the function is passed, it should return
the collection items. When the string is provided, the property value is used to create the bound collection items.
Returns
void
-
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing?
Please report it via our issue tracker.
With the release of version 42.0.0, we have rewritten much of our documentation to reflect the new import paths and features.
We appreciate your feedback to help us ensure its accuracy and completeness.