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.

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