I am trying to have a column where
- the text is in upper case
- and the column is orderable.
If I am doing this through an accessor, then this won't be a tableColumn and it won't be orderable. So this wont work.
Next I am trying to find a way to make it uppercase in blade? For example, I am setting a column->toUpper = true;
$this->crud->addColumn(
[
'name' => 'country',
'label' => 'Country,
'type' => 'text',
'toUpper' => true
]);
Where in blade can I search for this and transform the value?
Or how should I do this? Looks like an easy task but I cant find it in the docs.
Edit Changing this to a modelFunction will disable other functionality like search. So really what we need is to have the field like a db column and retain all the associated functionalities (search sort etc) and make it uppercase in Blade as it is a display issue.