button icon seperate.

I need 3 condition.

Condition 1,

  • I want only mdi-dots-vertica(or search_date_btn_popup) icon click popup open.

Condition 2,

  • Don’t show TEST button click popup.
    Condition 3,
  • And popup location relative dot icon bottom.

Can you help us?

https://snippet.webix.com/e8bcbjfv

Hello,

The point is that if you create a window with the help of popup property, so when the onItemClick is triggered this window will always appear. So I can recommend creating popup as a separate view.

After init is possible to declare separate click action on a custom class name as

$$("search_date_btn").on_click.search_date_btn_popup = function(e, id){
  $$('search_date_btn_popup').show(e.target);
  // prevent onItemClick in button
  return false;
}

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

As another way, using onItemClick event you can define the icon and attach the popup to it. To get the value of the class attribute of the elements you can via className.

 on:{
    "onItemClick":function(id, ev){
      var trg = ev.target
      if(trg.className.indexOf("search_date_btn_popup") !== -1)
        $$('search_date_btn_popup').show(trg) 
    }
  },

Sample: https://snippet.webix.com/i5tq8rxr