fires after an item has been selected
id | id | the id of an item |
some.attachEvent("onAfterSelect", function(id) {
// ... some code here ...
});
If the multiselect mode is enabled, the event will fire only when additional items are selected with Ctrl+click, while passing the ID of a recently selected item. The event will not fire when selection is extended via Shift+click.
It is safer to use the onSelectChange event, which catches all selection state changes in the component, combined with the getSelectedId method.