I'm using the shouldLoad functionality to set a minimum length of characters before data loads from a remote source, like the example here
shouldLoad:function(query){
if ( query.length < 3 ) return false;
return true;
},
Is there a way to show the user that they must then enter this minimum number of characters, like select2 does?
Thanks
Of course,
You can use
not_loading
in your renderer function which is triggered when you return false fromshouldLoad
.Example:
You can learn more from their official doc.
Hope it helps.