Suggested text click event

Hi team, I have used suggest in text. I'm getting list as a suggestion but I want to click on item from the list. How to achieve suggest list click event.

Comments

  • edited February 18

    Hello @Naufil ,
    As a solution, you can get the popup body (a list) and attach the onItemClick event:

    webix.ui({
      view:"text", 
      suggest: {
        body: {
          data:countries,
          on:{
            onItemClick: function(id){
            //your custom logic
              webix.message(id);
            }
          }
        }
      }}
    

    Please take a look at the snippet:
    https://snippet.webix.com/yai3ze2s

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion