ui5 conditional format table cell
<p>Currently I have a table that pulls through data and formats the text if the number returned is green.</p>

<p>I cannot figure out how to change the background colour of the table cell depending on the cell value.</p>

<p>Is anyone able to point me in the right direction as I have no idea where to start and couldn't find any information on google.</p>

<p>This is what I have done previously to format the cell text. </p>

<p>Table Column:</p>

<pre><code>&lt;ObjectStatus 
    text="{dataModel&gt;CurrentPerformanceIndicator}"
    state="{
        path: 'dataModel&gt;CurrentPerformanceIndicator',
        formatter: '.formatter.statusText'
    }" /&gt;
</code></pre>

<p>Formatter:</p>

<pre><code>statusText: function (sStatus) {
    switch (sStatus) {
        case 80:
            return "Success";
        default:
            return "None";
    }
}
</code></pre>