In Laravel Backpack - Column data in view details and XLS download is truncated

泄露秘密 提交于 2019-12-11 06:37:28

问题


If the column data has approximately more than 50 characters the column gets truncated at around 50. addColumn function has 'type' => 'text'

In the end there is [...]

This is both in the details pop-up and XLS download.

Question is, can this limit be increased from any configuration?


回答1:


Yes, you can! There is a limit option on the column for that.

    $this->crud->addColumns([
        [
            'name' => 'name',
            'label' => 'Name',
            'type' => 'text',
            'limit' => 150,
        ],
        ...
    ]);


来源:https://stackoverflow.com/questions/52355899/in-laravel-backpack-column-data-in-view-details-and-xls-download-is-truncated

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!