ia.ComponentFactory Class
A Factory objects for building components.
Constructor
ia.ComponentFactory
(
-
config
-
report
-
dataGroups
-
interactionGroup
-
comparisonInteractionGroup
Parameters:
-
config
ia.ConfigThe config.
-
report
ia.ReportThe report.
-
dataGroups
ia.DataGroup[]A list of associated datagroups.
-
interactionGroup
ia.InteractionGroupThe associated interaction group.
-
comparisonInteractionGroup
ia.InteractionGroupThe associated comparison interaction group.
Item Index
Methods
Methods
_getSuffix
(
String
private
-
id
Extracts the suffix from the component id.
Parameters:
-
id
StringThe id of the component.
Returns:
String:
The suffix.
_getType
(
String
private
-
id
Extracts the type from the component id.
Parameters:
-
id
StringThe id of the component.
Returns:
String:
The type.
build
(
-
id
-
callbackFunction
Builds the component.
Parameters:
-
id
StringThe id of the component.
-
callbackFunction
FunctionCalled on completion of function, with the component id as the parameter.
buildComponent
(
-
onComponentsReady
Builds a all components in the config.
Parameters:
-
onComponentsReady
FunctionGets called when the build is complete.
render
(
-
id
-
callbackFunction
Renders the component.
Parameters:
-
id
StringThe id of the component.
-
callbackFunction
FunctionCalled on completion of function, with the component id as the parameter.
update
(
-
id
-
callbackFunction
Updates the component.
Parameters:
-
id
StringThe id of the component.
-
callbackFunction
FunctionCalled on completion of function, with the component id as the parameter.