Column priority option
Closed this issue · 0 comments
Kreyu commented
Similar to form fields in Symfony Form component, the columns should support a priority
option, which allows setting the order of the column without using personalization. However, the personalization feature should operate on the new option, instead of using its own data objects.
$builder
->addColumn('name', TextColumnType::class, ['priority' => 0])
->addColumn('id', NumberColumnType::class, ['priority' => 1])
;
// The "id" column will be rendered before "name", because its priority is higher
See: https://symfony.com/blog/new-in-symfony-5-3-form-field-sorting