Rare bug

Hi,

I am using webix.event to control click events on datatable column filters:
http://webix.com/snippet/6ffda9cd

It works as expected, but if I call showColumnBatch for filtering other columns, click event stops working.

On call of showColumnBatch, the header will repaint self and filter object will be recreated.

A bit more complex approach, will be to extend filter code and add the event handler as part of a filter.

http://webix.com/snippet/76d747a0

I have a similar problem which relates back to the problem that divs are destroyed and recreated, I think.

In this snippet: http://webix.com/snippet/e83ca266, I attach an event to a tab item on mouse enter. However, if the another tab is clicked, the tab with the event is recreated to show it’s not active anymore, and the event handling is lost.

It would be nice if you could attach html events to webix view components that persist when the underlying div representation changes.

The tabbar itself is not destroyed, so you can attach an event handler to the component’s container. Like in the next snippet

http://webix.com/snippet/009ecd2b

In the case of filters, situation is a bit more complex, as filters block further event propagation.

Great, thanks!

I am sorry, but this is still not working. It shows when you enter (or leave) the whole tabbar, but there is no way to differentiate which tab is entered with the mouse (which is what I want to detect).

Yep, please check the next snippet

It possible to use webix.html.locate to get the id of button, over which mouse action occurs

http://webix.com/snippet/d3885d19

Great, and that’s exactly what I needed. I also, didn’t know about locat. Thanks.