We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Conditional Icon/Image based on table value

Accepted answer
11
Views
3
Comments
edited Nov 9, 2020 7:41PM in Visual Builder 3 comments

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?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!