feat(crud/configuration): add documentation for setListRowAttributes
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
f212528869
commit
ff8832479a
1 changed files with 15 additions and 0 deletions
|
|
@ -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)`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue