Event Listener Button Apply, Angular 8
Hello WebDataRocks Group, a question: How can I add a click eventListener to the Apply button that is in the fields part to execute a TypeScript function in Angular 8, and tried to add a listener to that button in specific, but it doesn’t leaves, neither by Dom or JavaScript.
What I must do is when I give the Apply button consult an Api http again the data, according to the fields you select
1 answer
Hello,
Our team recommends paying attention to the reportchange
event that is triggered when a report is changed in the component whether by a user or by code. In case the user change the set of selected fields in the Field List and click the “Apply” button, the event will be triggered.
Please see an example we have prepared for you.
We hope it works for your case.
Please let us know in case further questions occur.
Regards,
WebDataRocks Team