Skip to content

Commit

Permalink
Merge pull request agentejo#1448 from Pervanovo/pr-select-renderer
Browse files Browse the repository at this point in the history
Implemented select renderer
  • Loading branch information
aheinze authored Nov 21, 2021
2 parents a30b7bc + 7976303 commit 494765e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions assets/app/js/app.utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,13 @@
return '<span class="uk-badge">' + (cnt + (cnt == 1 ? ' Item' : ' Items')) + '</span>';
};

App.Utils.renderer.select = function (v, field) {
if (field.options && field.options.options && field.options.options[v]) {
return '<span title="Value: ' + v + '" data-uk-tooltip>' + field.options.options[v] + '</span>';
}
return v;
};

App.Utils.renderer.tags = App.Utils.renderer.multipleselect = function (v) {

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

0 comments on commit 494765e

Please sign in to comment.