HTML5 Data Bindings Formatter Support Product Page

Answered

Toggle class

6 years ago David Woolley posted:
In App Connect, dynamic CSS classes can be assigned to elements using Toggle Class with the condition filters.

How would I do this with HTML5 Data Bindings Formatter?

I need to change the color of a table row when a field is a certain number.

Replies

Replied 6 years ago
6 years ago Teodor Kuduschiev replied:
You can assign dynamic class to the field, by selecting it and at the bottom of the data bindings panel you can select the class property and then apply formatter to it.
Replied 6 years ago
6 years ago David Woolley replied:
Got it working like so:

<tr data-binding-class-bg-danger="{{(recommended==1)}}" ... >

All the table rows where field: recommended = 1 have a background color with class bg-danger

Reply to this topic