Hi Matthew,
Greetings from Syncfusion
support.
We don't have a direct
event to identify the SortBy subitem click. But you can use the SortBy
dropdown instance to trigger its select event. We have used the File Manager created
event to trigger this event. Check out the below code snippet.
created() {
//sortby item's id will be FileManager's
id_Toolbar's id_sortby
var ddbObj = (document.getElementById('overview_tb_sortby') as any)
.ej2_instances[0];
//select event will be triggered on item click.
ddbObj.select = function
(args) {
console.log(args);
};
}
|
Sample: https://stackblitz.com/edit/angular-92e5om?file=src%2Fapp.component.html,src%2Fapp.component.ts
Check out the shared
sample and get back to us if you need any further assistance.
Regards,
Indhumathy L