Replies: 1 comment
-
|
🚨 Bot is not sure about this answer. Please verify. 🚨 There’s no mention in the provided knowledge sources of a built‑in For columns, the documented configurable attributes are things like The recommended way to change how a column is displayed is via the Similarly, for fields, the fluent API and array syntax expose So:
If you want this as a core feature, it would need to be opened (or continued) as a feature request in the Backpack repo/community, since the current docs and issues don’t show such an option existing yet. ℹ️ Please note our AI Bot does not reply to follow-ups, this will be the only AI answer in this thread. If the AI helped you find the answer, please mark it as answered or write details below so it can learn. Then close the conversation. If not, please give more information for when a human reads this. ℹ️ Relevant sources: Allow Callable to Format Column/Field Names |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be helpful to be able to decide the alignment of labels and field contents separately, without too many wrappers!
For example:
$this->crud->addColumn([
'name' => 'total_hours',
'label' => trans('backpack::ash_base.hours'),
'type' => 'number',
'format' => 'getLocale()', // Or custom or others
'alignments' => [
'field' => 'right',
'label' => 'center'
],
]);
Beta Was this translation helpful? Give feedback.
All reactions