Skip to main content

afterSelect

fires after selecting an item

afterSelect: (id: string | number) => void;

Parameters:

  • id: string | number - the id of an item

Example

component.selection.events.on("afterSelect", function(id){
console.log("An item is selected");
});
note

The event can be applied to the DataView, List, Tree components.

Starting from v7.0, you can also apply the simplified version of the event:

component.events.on("afterSelect", function(id) {
console.log(id);
});