Conditional Icon/Image based on table value
Summary
How to show different icons in a column based on a value?Content
Hello Guys,
I have mapped the classes that are created to display icons, example:
<span class="vb-icon vb-icon-warning">
<oj-bind-text value="[[$current.data]]"></oj-bind-text>
</span>
I'm trying a conditional set of icon with the class values being retrieved from a javascript function but looks like that is not possible to call a function to class attribute, there is any workaround to do this kind of validation to display the icons based on a value?
Tagged:
0