I want to set a column title for the sort column (in $summary_fields
) for a GridField
.
I can't seem to do something like:
static $summary_fields = array('Reorder' => 'Sort');
Although I can use the $summary_fields
method to change the order of the columns, I can't use it to set a title for the sort column.
I am using the GridFieldOrderableRows
component from the SilverStripe Grid Field Extensions Module.
This is now possible. We can set the column heading by setting the Reorder
label in the $field_labels
variable:
private static $field_labels = array(
'Reorder' => 'Sort'
);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With