Caplin Trader 5.1.0

Interface: module:ct-component/factory/ComponentFactory

module:ct-component/factory/ComponentFactory

ComponentFactory is the interface component factories that are to be accessed via the module:ct-component/ComponentFactory should implement. Their alias in the alias xml definitions should be grouped under the 'component' identifier. e.g. 'caplin.grid-component' would be used to specify the GridComponentFactory.

Methods

createFromXml(sXml) → {module:ct-component/Component}

Given an XML string representation of the component to be created it will create and return the component.

Parameters:
Name Type Description
sXml String

The XML representation of the component to be constructed.

Returns:

An instance of the component defined within the specified XML string.

Type
module:ct-component/Component