Hi!
I’m trying to remove extra items from the popup. How to do it?
https://snippet.webix.com/1w5silhj
Super!!!
Thank you!!!
Hi @integral,
The snippet you provided works well by filtering items before showing the suggest popup. However it has the downside that the combo looses the suggest filter as you type functionality.
https://snippet.webix.com/i0cc9e7l
_suggest_after_filter calls show, which in turn calls the handler for onBeforeShow. It seems this breaks the existing functionality.
I really need a combined functionality, where one is able to see a previously selected value in the combo, but some values are not available for selection (ie: filter before show), and suggest filter as you type works correctly.
Kind Regards
Emil
@emilkm
try to check for being already visible in the handler
on:{
onBeforeShow:function(){
if(this.isVisible())return;
var list = this.getList();
list.filter(function(obj){
return obj.visible||false;
})
}
}
Thank you so much. Works perfectly.