var {{ $entityType }}Name = ''; ${{ $entityType }}Select.combobox({ highlighter: function (item) { if (item.indexOf("{{ trans("texts.create_{$entityType}") }}") == 0) { {{ $entityType }}Name = this.query; return "{{ trans("texts.create_{$entityType}") }}: " + this.query; } else { var query = this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&'); return item.replace(new RegExp('(' + query + ')', 'ig'), function ($1, match) { return '' + match + ''; }) } }, template: '