Skip to main content

afterSelect

fires after selecting an item

afterSelect: (id: string) => void;

Parameters:

id: string - 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);});