ia.FeatureCard Class
A class for rendering a feature card.
Constructor
ia.FeatureCard
-
id
Parameters:
-
idStringThe id of the feature card.
Item Index
Methods
Methods
_renderFeatureList
-
data
Renders the feature list.
Parameters:
-
dataJSONThe JSON data.
_renderIndicatorList
-
data
Renders the indicator list.
Parameters:
-
dataJSONThe 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:
-
eventTypeStringThe type of event to listen for.
-
fncFunctionThe function to call when the event occurs.
-
objObjectAn optional parent object.
clearHighlight
()
Clears all highlights.
clearSelection
()
Clears all selections.
dispatchEvent
-
event
Dispatch an event to the listeners.
Parameters:
-
eventObjectThe event object.
highlight
-
id
Highlights the legend class that contains the given id.
Parameters:
-
idStringThe id of the item.
removeListener
-
obj
Removes all event listeners for the given object.
Parameters:
-
objObjectThe object.
render
()
Renders the repeater.
select
-
id
Selects.
Parameters:
-
idStringThe id of the item.
setSnippet
-
url -
callbackFunction
Sets the snippet.
Parameters:
-
urlStringThe path to the html snippet.
-
callbackFunctionFunctionCalled once snippet has loaded.
unselect
-
id
Unselects.
Parameters:
-
idStringThe 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
id
String
The id.
ignoreIndicatorIds
String
The indicators to ignore.
ignoreThemeIds
String
The themes to ignore.