diff --git a/docs/crud/configuration.md b/docs/crud/configuration.md index a06a838..674f8f0 100644 --- a/docs/crud/configuration.md +++ b/docs/crud/configuration.md @@ -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)`