I'm using select2 4.0.0 and I'm having trouble changing the way the message that says I have not found results is shown. In the old version I used formatNoMatches
to change the presentation, how is it done now?
obs: I can not change this directly in the en-br.js file because every select
behaves differently.
$('#id_categoria').select2(
{
placeholder:'Selecione',
minimumInputLength: 2,
formatNoMatches: function(term) {
return "Nenhum resultado. Adicionar " + term + "?";
}
}
);