CollectionBindToChain (utils)
@ckeditor/ckeditor5-utils/src/collection
interface
Filtering
Methods
-
as( Class )
Creates the class factory binding in which items of the source collection are passed to the constructor of the specified class.
Parameters
Class : function
The class constructor used to create instances in the factory.
-
using( callbackOrProperty )
Creates a callback or a property binding.
Parameters
callbackOrProperty : function | String
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.