attachEvent to filter in header?

Hello everyone.
I have a treetable (‘id’ = ‘dview’), and I have a filter text box in the header of a column.
{ id: “name”, header: [“Search”, {content:“textFilter”}], width: 800 }

I want to do custom search filtering, so how can I use attachEvent in my set up?
This does not work:
$$(“dview”).getFilter(“name”).attachEvent(“onTimedKeyPress”,function(){
// etc
});
My console tells me “TypeError: $$(…).getFilter(…).attachEvent is not a function”

I think this is because I am trying to attach to the filter of a column, instead of an element? But what can I do, because I cannot give my header a seperate ID, right?

I can see here - https://snippet.webix.com/lnu5hd3u
This person has it working , but they have their search box in a separate row, but I don’t want this. I like it in the header of my column.

Is it possible for me?

Thank you

Hello,
The point is that $$("dview").getFilter("name") will return an html element, so you need to use webix.event

Please check the sample: https://snippet.webix.com/qg50rxhh

Thank you Nastja for your help.
I kept having issues, and still could not get any good results.
I came up with something using ‘filterByAll’ on using this (below), and it works great.
https://snippet.webix.com/las0b306