Hi,
Is it possible to use a Card getting it's data from a [single value] dataStore or do we have to extract data into a variable value?
I've seen the example...
Card::create(array(
"value"=>$this->src("automaker")->query("select sum(amount) from payments"),
"title"=>"Total Sale",
));
...But this means moving SQL from the controller to the view, something I'd rather not do. I'd much rather pass it in a datastore that just has one key->value pair. Like...
Card::create(array(
"dataStore"=>$this->dataStore('single_two_column_row_extracted_from_sql')
,"columns"=>array(
"Title"=>array(
"cssStyle"=>"text-align:center;font-weight: bold;color:red;"
)
)
));