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