Hello, I have a problem I can't solve. I a table, I want one of the columns in red color and right aligned. I cannot enter the two statements : color and text_align in the "cssStyle", only one works : or text is green, or text is right justfied, but not the two ... green AND right justified . Here is my view file :
<?php
Table::create(array(
"dataSource"=>$this->dataStore('stocks'),
"sorting"=>array(
"Article"=>"asc",
),
"columns"=>array(
"Article"=>array(
"label"=>"Article"
),
"Stock"=>array(
"label"=>"Stock",
"cssStyle"=>"text-align:right"
),
"Rentres"=>array(
"label"=>"Rentres",
"type"=>"number", "cssStyle"=>"color:green", "cssStyle"=>"text-align:right"
),
"Poids"=>array(
"label"=>"Poids",
"cssStyle"=>"text-align:right"
),
),
"cssClass"=>array(
"table"=>"table-bordered table-striped table-hover"
)
));
?>