onAfterUnSelect

fires after an item has been unselected

void onAfterUnSelect(id id);
ididthe id of an item

Example

some.attachEvent("onAfterUnSelect", function(id) {
  // ... some code here ...
});

Details

If the multiselect mode is enabled, the event will fire only when additional items are unselected with Ctrl+click, while passing the ID of a recently unselected item. The event will not fire when unselection 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.

See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.