Catch datatable filtering event

Is there a way to catch an event when datatable got filtered?
onBeforeFilter/onAfterFilter doesn’t seem to work: https://snippet.webix.com/5778a645

Or maybe I’m doing something wrong?

explicit filter does not trigger onBeforeFilter / onAfterFilter.
to achieve that you need to register filter.
https://snippet.webix.com/qw396oxh
https://docs.webix.com/api__ui.datatable_registerfilter.html

Thanks! This method works too, but I went different way. I checked in debug all events that fire on datatable filtering and spotted that DataStore of my table has same events onBeforeFilter/onAfterFilter and attached functions to datastore. Code Snippet