Skip to content

Internationalization #156

Answered by oyejorge
wiplano asked this question in Q&A
Discussion options

You must be logged in to vote

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>&hellip;</div>';
		},
		no_results:function(data,escape){
			return '<div class="no-results">No results found for "'+escape(data.input)+'"</div>';
		},
	}
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by oyejorge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants