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
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
不要直接使用这样的方法。
这是使用格式化程序的唯一正确方法:
$grid->addFormatter('description','wrap');
https://github.com/atk4/atk4/blob/master/lib/Grid/Basic.php#L237