Combo filtering

Hi
I am evaluating your system to see if it meets our development needs and I have a question:
I have seen that the combo filter the results that start with the input text. Is it also possible to search for entries that contain the text entered by the user?

thanks

Hello @davideS4bt ,
In combo configuration looks like this:

options: {
    filter: function(item, input){ 
      var id = item.id;
      var value1= item.value1;
      return value1.indexOf(input) !== -1 ||  id == input;
    },

Here is an example: https://snippet.webix.com/f7yducts

Perfect.
Thanks

Hi
If I want insert an overlay text when the filter result is null, how can I do this?

Hello @davideS4bt ,

You can check the count of data records as

if (!view.count())
	view.showProgress();
			else
			   view.hideProgress();

https://docs.webix.com/desktop__progress.html

in which event I have to use this code?
thanks

You can use onItemClick event
Something like this

{
...
 on:{
    onItemClick: function(){
         var combo1 = $$('idofthecombo').getPopup().getList();  
          var cpop = $$('idofthecombo').getPopup();
             if (!(combo1.count())) 
                  cpop.showProgress();     
                       else
                          cpop.hideProgress();  
    }
  },
...
}
webix.extend($$("idofthecombo"), webix.ProgressBar);