Skip to Content
Menú
This question has been flagged
5009 Vistes

I have a tree view list having multiples columns of checkboxes. I can change the color of the cell, but I can't change the color of the tick mark or the box surrounding the tick mark only. Any idea?

My code for changing the cell color is:

<field name="unsafe_condition"
attrs="{'column_invisible': [('parent.scored','!=',False)]}"
options='{"bg_color": "#FF8080: unsafe_behavior == True"}' />


Avatar
Descartar

You can use style directly but not with options. eg: <field name="name" style="color:red !important;"/>

or you can add a css file in assets backend. To set according to condition inherit the form renderer js.

Related Posts Respostes Vistes Activitat
2
de des. 23
1883
4
de maig 15
5630
1
de juny 24
1920
0
de nov. 23
1504
2
de jul. 24
8047