Columns
Setting Columns
You can define your columns in your CRUD Config.
$this->columns([
(new Text('name')),
]);
Available column types
- Text
- TextLink
- EditLinkColumn
Formatting
You can format the output in a column.
(new Text('amount_paid'))
->setFormatter(function ($amount) {
setLocale(LC_MONETARY, 'en_GB.UTF-8');
return money_format('%n', $amount / 100);
}),
Labeling
You can rename the column headings
(new Text('some_nasty_long_column_name'))
->setLabel('Nice Title'),