HTML5 Data Bindings Formatter Support Product Page

Answered

Toggle class

Asked 07 Dec 2018 09:27:44
1
has this question
07 Dec 2018 09:27:44 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 07 Dec 2018 12:31:24
07 Dec 2018 12:31:24 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 16 Jan 2019 07:48:53
16 Jan 2019 07:48:53 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