onSelect

Description

Fires when an item is selected.

Your Javascript can references these variables: 'v' the value in the 'a5-value' attribute on the template. 'ia', item arguments, for example a5-item="item1:arg1" ('item1' is the item name and 'arg1' is item argument), 'i', the 'item' object (contains all of the properties for this item). 'ele', a pointer to the element on which the event occurred.

If there are multiple items inside a viewbox that are attached different onSelect events, then you can define a global onSelectComplete event that will fire after every 'onSelect' event on each item has fired.

See Also