Show:

ia.ComponentFactory Class

A Factory objects for building components.

Constructor

ia.ComponentFactory

(
  • config
  • report
  • dataGroups
  • interactionGroup
  • comparisonInteractionGroup
)

Parameters:

Methods

_getSuffix

(
  • id
)
String private

Extracts the suffix from the component id.

Parameters:

  • id String

    The id of the component.

Returns:

String: The suffix.

_getType

(
  • id
)
String private

Extracts the type from the component id.

Parameters:

  • id String

    The id of the component.

Returns:

String: The type.

build

(
  • id
  • callbackFunction
)

Builds the component.

Parameters:

  • id String

    The id of the component.

  • callbackFunction Function

    Called on completion of function, with the component id as the parameter.

buildComponent

(
  • onComponentsReady
)

Builds a all components in the config.

Parameters:

  • onComponentsReady Function

    Gets called when the build is complete.

render

(
  • id
  • callbackFunction
)

Renders the component.

Parameters:

  • id String

    The id of the component.

  • callbackFunction Function

    Called on completion of function, with the component id as the parameter.

update

(
  • id
  • callbackFunction
)

Updates the component.

Parameters:

  • id String

    The id of the component.

  • callbackFunction Function

    Called on completion of function, with the component id as the parameter.