Solved

Event definition is not working for a button click

  • 29 March 2023
  • 2 replies
  • 102 views

Badge +1

I can’t seem to get the definitions of several events right. Hopefully someone can tell me what I am doing wrong.

I have a button ‘Filters’. 
 

The html code involving this button:

<div class="webix_el_box" style="width:100px; height:38px">
<button type="button" class="webix_button webix_img_btn" style="line-height:32px;"
<span class="webix_icon_btn filter-icon" style="max-width:32px;">
</span>Filters
</button>
</div>

What I tried for event defintion:

 

We are using Webix as a ReactJS framework.

icon

Best answer by danielle 31 March 2023, 21:08

View original

2 replies

Userlevel 3
Badge +1

Hi @robinvk - Happy to provide some insights here. Currently, a :contains() selector is not supported in event definitions. You should be able to achieve a similar outcome by adding a filter in the event definition for Target Text contains Filters.

Don’t hesitate to let me know if you have any lingering questions!

Badge +1

@danielle Thanks for your suggestion.

I saw that option, but it looked to me that it would only identify clicks on a part of the button namely the part involving <span>...</span>. That would exclude all clicks on the outer part of the button. But I hope I am mistaken of course 😀

 

Reply