feat(crud/configuration): add documentation for setListRowAttributes
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Simon Vieille 2025-12-22 17:50:18 +01:00
commit ff8832479a
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -291,6 +291,21 @@ class MyEntity implements EntityInterface
In order to sort entities, the default property used is `sortOrder`. You can set something else.
## setListRowAttributes
`setListRowAttributes(string $context, array $attributes)`
Add attributes on a row (list).
```php-inline
$configuration->setListRowAttributes('index', [
'class' => 'foo',
'data-foo' => function(Entity $entity) {
return $entity->getFoo(); // A string
},
]);
```
## setBatchAction
`setBatchAction(string $context, string $action, string $label, callable $callack)`