Show:

ia.FeatureCard Class

Module: ia

A class for rendering a feature card.

Constructor

ia.FeatureCard

(
  • id
)

Parameters:

  • id String

    The id of the feature card.

Methods

_renderFeatureList

(
  • data
)

Renders the feature list.

Parameters:

  • data JSON

    The JSON data.

_renderIndicatorList

(
  • data
)

Renders the indicator list.

Parameters:

  • data JSON

    The JSON data.

_triggerRender

() private

Triggers a render. Prevents over rendering which results in a frozen browser.

addEventListener

(
  • eventType
  • fnc
  • obj
)

Add an event listener.

Parameters:

  • eventType String

    The type of event to listen for.

  • fnc Function

    The function to call when the event occurs.

  • obj Object

    An optional parent object.

clearHighlight

()

Clears all highlights.

clearSelection

()

Clears all selections.

dispatchEvent

(
  • event
)

Dispatch an event to the listeners.

Parameters:

  • event Object

    The event object.

highlight

(
  • id
)

Highlights the legend class that contains the given id.

Parameters:

  • id String

    The id of the item.

removeListener

(
  • obj
)

Removes all event listeners for the given object.

Parameters:

  • obj Object

    The object.

render

()

Renders the repeater.

select

(
  • id
)

Selects.

Parameters:

  • id String

    The id of the item.

setSnippet

(
  • url
  • callbackFunction
)

Sets the snippet.

Parameters:

  • url String

    The path to the html snippet.

  • callbackFunction Function

    Called once snippet has loaded.

unselect

(
  • id
)

Unselects.

Parameters:

  • id String

    The id of the item.

Properties

container

JQUERY Element

The container that holds the object.

dataOrder

String

The list mode.

Default: "Order data by feature"

displayFeatureHeader

Boolean

Should feature headers be displayed.

Default: false

displayMode

String

The display mode.

Default: "All themes"

displaySelectedDateOnly

Boolean

Display indicators for selected date only?

Default: false

displayThemeHeader

Boolean

Should theme headers be displayed.

Default: false

geography

ia.Geography

Specifies a geography.

id

String

The id.

ignoreIndicatorIds

String

The indicators to ignore.

ignoreThemeIds

String

The themes to ignore.

indicator

ia.Indicator

Specifies a selected indicator.