FRAMEWORK » KNOCKOUT

CSS binding

CSS class binding

html
<div data-bind="css: { profitWarning: currentProfit() < 0 }">
   Profit Information
</div>