I’m porting an application from v2.0 Cummunity to v3.2.6 Enterprise.
In v2 I could create grid titles on multiple lines using displayAs() with \n in the string; but only if using double quotes.
With v3, the title is always on one line.
How can I create titles on multiple lines?
Below is a bit of test code with the table it produces below
public function test()
{
$crud = $this->_getGroceryCrudEnterprise();
$crud->setTable('children');
$crud->columns(['Child_first_name','Woodland_Monday']);
$crud->displayAs(array(
'Woodland_Monday' =>"Monday - 23\n* Stay Late - 4"
));
$output = $crud->render();
return $this->_example_output($output);
}
There is no work-around at the moment to do that. I will try to have this fixed on the next version of Grocery CRUD. I will let you know once the new version is available for you to check.
I am glad to inform you that the new version (3.2.7) is now available for you to check it You can upgrade to the latest version by following the wizard here: User's Page Login