ia.InteractionGroup Class
Organizes interactions between different components.
Constructor
ia.InteractionGroup
()
Item Index
Methods
Properties
Methods
_dispatchInteractionEvent
-
eventType
Dispatches an interaction event.
Parameters:
-
eventType
StringAn ia.ItemEvent type.
_itemEventHandler
-
event
Handles item events.
Parameters:
-
event
ia.ItemEventAn
ia.ItemEvent
dispatched by a component.
_onLegendClassEvent
-
event
-
item
Updates the legend class components.
Parameters:
-
event
ia.ItemEventAn
ia.ItemEvent
dispatched by a component. -
item
ObjectAn item.
_updateComponents
-
event
-
item
Updates the components
Parameters:
-
event
ia.ItemEventAn
ia.ItemEvent
dispatched by a component. -
item
ObjectAn item.
_updateLegendClassComponents
-
event
-
item
Updates the legend class components
Parameters:
-
event
ia.ItemEventAn
ia.ItemEvent
dispatched by a component. -
item
ObjectAn item.
addComponent
-
component
Adds a component to the group.
Parameters:
-
component
ObjectThe component to add.
clearHighlight
()
Clears the highlight.
clearSelection
-
id
Selects the id.
Parameters:
-
id
StringThe 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:
-
component
ObjectThe component to remove.
setHighlight
-
id
Highlight the id.
Parameters:
-
id
StringThe id.
setSelection
-
s
Sets the selected ids as an array.
Parameters:
-
s
StringAn array of ids.
unselect
-
id
Unselects the id.
Parameters:
-
id
StringThe id.
Properties
selectionMode
String
Selection mode.
Default: "multiple"