Provider interface returning instances of component view creators. Registers into ABCS with the Component Registration API.
Creator is called when your component is dropped into a page or called though the Creator API and asked to create a new instance of the component view hierarchy representing the ABCS component model.
You should definitely implement this interface to provide a way of creating your component instances, without a creator ABCS will not be able to insert your component views into a page.
An instance of the provider must be registered into ABCS through the Component Registration API.
- Version:
- 16.3.5
- Source:
- See:
Example
define([
'myComponent/MyCreator'
], function (
Creator
) {
'use strict';
var CreatorProvider = function () {
};
CreatorProvider.prototype.getCreator = function () {
return new Creator();
};
return new CreatorProvider();
});
Methods
getCreator() → {components.dt/js/spi/creators/Creator}
stable API
Get the component's creator creating new component's instances.
Must be implemented.
- Version:
- 16.3.5
- Source:
Returns:
creator instance