post by mopac on Dec 29, 2025

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);
    }

post by johnny on Jan 4

Hello @mopac and happy new year :slight_smile:

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.

Regards
Johnny

post by johnny on Jan 4

Hello @mopac ,

I am glad to inform you that the new version (3.2.7) is now available for you to check it :slight_smile: You can upgrade to the latest version by following the wizard here: User's Page Login

Let me know if that worked for you.

Regards
Johnny

post by mopac on Jan 5

Hi Jonny,

Thanks for the update.
Yes it is working fine.
displayAs() now shows new lines.

Thanks for your support

Ray

post by mopac on Jan 5

Hi Johnny,

Sorry I mispelled your name in the last reply

Ray

1 / 5
Dec 2025