ia.FeatureCard Class
A class for rendering a feature card.
Constructor
ia.FeatureCard
-
id
Parameters:
-
id
StringThe id of the feature card.
Item Index
Methods
Methods
_renderFeatureList
-
data
Renders the feature list.
Parameters:
-
data
JSONThe JSON data.
_renderIndicatorList
-
data
Renders the indicator list.
Parameters:
-
data
JSONThe 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
StringThe type of event to listen for.
-
fnc
FunctionThe function to call when the event occurs.
-
obj
ObjectAn optional parent object.
clearHighlight
()
Clears all highlights.
clearSelection
()
Clears all selections.
dispatchEvent
-
event
Dispatch an event to the listeners.
Parameters:
-
event
ObjectThe event object.
highlight
-
id
Highlights the legend class that contains the given id.
Parameters:
-
id
StringThe id of the item.
removeListener
-
obj
Removes all event listeners for the given object.
Parameters:
-
obj
ObjectThe object.
render
()
Renders the repeater.
select
-
id
Selects.
Parameters:
-
id
StringThe id of the item.
setSnippet
-
url
-
callbackFunction
Sets the snippet.
Parameters:
-
url
StringThe path to the html snippet.
-
callbackFunction
FunctionCalled once snippet has loaded.
unselect
-
id
Unselects.
Parameters:
-
id
StringThe 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.