API Docs for: 2.1.0
Show:

Tc.Connector Class

Defined in: dist/terrific.js:1020
Module: Tc

Base class for the different connectors.

Methods

init

(
  • connectorId
)

Initializes the Connector.

Parameters:

  • connectorId String

    The unique connector ID

notify

(
  • origin
  • state
  • data
)
Boolean

Notifies all registered components about a state change This can be be overriden in the specific connectors.

Parameters:

  • origin Module

    The module that sends the state change

  • state String

    The component's state

  • data Object

    Contains the state relevant data (if any)

Returns:

Boolean:

Indicates whether the default action should be excuted or not

registerComponent

(
  • component
)

Registers a component.

Parameters:

  • component Module

    The module to register

unregisterComponent

(
  • component
)

Unregisters a component.

Parameters:

  • component Module

    The module to unregister