GridView::widget Style Column using condition.

Hi There,

I have a status column in our Yii App, the data pulled from the database is an integer.

We have a Settings model that we use to pull the string label that matches our status.

We are looking to style this column, so apply some bootstrap CSS so that the different status display as different colours using the bootstrap label class.

My question is how do you set the style of a GridView::widget using a condition.

The attribute we wish to style is;


        ['attribute'=>'jStatus',

           

			 'format'=>'raw',

			 'value'=>function($data){

			   return \common\models\Settings::findOne(['sKey'=>'job_status','sValue'=>$data->jStatus])->sLabel;

			 }],

Thank you =)