ia.InteractionGroup Class
Organizes interactions between different components.
Constructor
ia.InteractionGroup
()
Item Index
Methods
Properties
Methods
_dispatchInteractionEvent
-
eventType
Dispatches an interaction event.
Parameters:
-
eventTypeStringAn ia.ItemEvent type.
_itemEventHandler
-
event
Handles item events.
Parameters:
-
eventia.ItemEventAn
ia.ItemEventdispatched by a component.
_onLegendClassEvent
-
event -
item
Updates the legend class components.
Parameters:
-
eventia.ItemEventAn
ia.ItemEventdispatched by a component. -
itemObjectAn item.
_updateComponents
-
event -
item
Updates the components
Parameters:
-
eventia.ItemEventAn
ia.ItemEventdispatched by a component. -
itemObjectAn item.
_updateLegendClassComponents
-
event -
item
Updates the legend class components
Parameters:
-
eventia.ItemEventAn
ia.ItemEventdispatched by a component. -
itemObjectAn item.
addComponent
-
component
Adds a component to the group.
Parameters:
-
componentObjectThe component to add.
clearHighlight
()
Clears the highlight.
clearSelection
-
id
Selects the id.
Parameters:
-
idStringThe id.
clearSelection
()
Clears the selection.
getComponents
()
Object
Gets the list of components.
Returns:
getHighlight
()
String
Returns the highlighted id.
Returns:
getSelection
()
String
Returns the selected ids as an array.
Returns:
removeComponent
-
component
Removes a component from the group.
Parameters:
-
componentObjectThe component to remove.
setHighlight
-
id
Highlight the id.
Parameters:
-
idStringThe id.
setSelection
-
s
Sets the selected ids as an array.
Parameters:
-
sStringAn array of ids.
unselect
-
id
Unselects the id.
Parameters:
-
idStringThe id.
Properties
selectionMode
String
Selection mode.
Default: "multiple"