-
Hi! Thank you very much! |
Beta Was this translation helpful? Give feedback.
Answered by
oyejorge
Aug 6, 2021
Replies: 1 comment
-
Best approach right now is to use the render templates. new TomSelect('#input',{
render:{
option_create: function(data, escape) {
return '<div class="create">Add <strong>' + escape(data.input) + '</strong>…</div>';
},
no_results:function(data,escape){
return '<div class="no-results">No results found for "'+escape(data.input)+'"</div>';
},
}
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
oyejorge
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Best approach right now is to use the render templates.