nareboy
(Felipe Moreira)
1
Hi guys. I search a lot about how can i change the css of my footer row but no results.
That´s a part of my code of cgridview:
array
(
'header'=>'Jornada',
'name'=>'quant_horas_devedor',
'footer'=>$model_espelho->getTotalHorasTrabalhadas($data_pontos->getData(),"quant_horas_devedor"),
),
If i use the property class of htmlOptions, the entire cell is affected but the footer row still the same.
I would like for exemple change the color or size of my footer row. How can i do that?
Thank you!
lubosdz
(Lubosdz)
3
Use headerOptionsDetail
or footerHtmlOptions.
See also:
Example excerpt from CGridView - apply CSS class bgwhite to all footer cells:
'columns'=>array(
array(
'name' => 'adate',
'value' => ' ATT_DATA_DAILY::getAdateWithDay($data->adate) ."<input type=\"hidden\" name=\"rowid\" value=\"".$data->id."\" />" ',
'type' => 'raw',
'filter' => $this->widget('zii.widgets.jui.CJuiDatePicker', array(
'name'=>'adate',
'attribute'=>'adate',
'model'=>$model,
'language'=>Yii::app()->language,
'options'=>array(
'dateFormat'=>'dd.mm.yy',
'changeYear' => 'true',
'changeMonth' => 'true',
'yearRange' => '2014:'.(date('Y')),
'constrainInput'=>true,
),
), true),
'footerHtmlOptions'=> array('class' => 'bgwhite'),
),
array(
'name' => 'atime',
'value' => ' preg_match("/^(\d+:\d+):\d+$/", $data->atime, $match) ? $match[1] : $data->atime; ',
'footerHtmlOptions'=> array('class' => 'bgwhite'),
),
......