Skip to content

Commit 494765e

Browse files
authored
Merge pull request #1448 from Pervanovo/pr-select-renderer
Implemented select renderer
2 parents a30b7bc + 7976303 commit 494765e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

assets/app/js/app.utils.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,13 @@
331331
return '<span class="uk-badge">' + (cnt + (cnt == 1 ? ' Item' : ' Items')) + '</span>';
332332
};
333333

334+
App.Utils.renderer.select = function (v, field) {
335+
if (field.options && field.options.options && field.options.options[v]) {
336+
return '<span title="Value: ' + v + '" data-uk-tooltip>' + field.options.options[v] + '</span>';
337+
}
338+
return v;
339+
};
340+
334341
App.Utils.renderer.tags = App.Utils.renderer.multipleselect = function (v) {
335342

336343
if (Array.isArray(v) && v.length > 1) {

0 commit comments

Comments
 (0)