2

I want the text in a column of a grid to wrap. The grid is created with a model. I have found the format_wrap-method, but it does not seem to do anything:

$grid->format_wrap('description');

What do I do wrong? Thanks, Jeppe

4

1 回答 1

2

不要直接使用这样的方法。
这是使用格式化程序的唯一正确方法:

$grid->addFormatter('description','wrap');

https://github.com/atk4/atk4/blob/master/lib/Grid/Basic.php#L237

于 2013-09-23T08:20:29.987 回答