Revision history [back]

click to hide/show revision 1
initial version

answered 2015-06-16 14:01:42 +0800

WilliamB gravatar image WilliamB

Can you detail what you wanna do ?

To change a color, the easiest way would be to add a dynamic CSS class :

[email protected]( yourCondition ? 'alert' : 'warning')

And have the CSS

.alert {color:red;}

.warning {color:orange;}

Can you detail what you wanna do ?

To change a color, the easiest way would be to add a dynamic CSS class Something like :

[email protected]( yourCondition <listitem visible="@load(not empty each.taches)">
   <listcell style="text-align:center;">
      <label class="btn btn-round" sclass="@load(item.typenotif eq 'TRUE' ? 'alert' 'btn-info' : 'warning')
'btn-danger'" value="@load(item.notification)"/> 
   </listcell>
</listitem>

And have the CSS

.alert {color:red;}

.warning {color:orange;}

Something like :

<listitem visible="@load(not empty each.taches)">
   <listcell style="text-align:center;">
      <label class="btn btn-round" sclass="@load(item.typenotif eq 'TRUE' ? 'btn-info' : 'btn-danger'" 'btn-danger')" value="@load(item.notification)"/> 
   </listcell>
</listitem>
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More