add doc for crud inline_form
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
f61e4b3a44
commit
dd6e9c90bc
|
@ -112,7 +112,7 @@ All fields have these options:
|
|||
|
||||
|
||||
```
|
||||
// Example #0
|
||||
```php-inline Example #0
|
||||
$configuration->setField('index', 'My field', TextField::class, [
|
||||
'property' => 'myProperty',
|
||||
// OR
|
||||
|
@ -121,7 +121,7 @@ $configuration->setField('index', 'My field', TextField::class, [
|
|||
},
|
||||
])
|
||||
|
||||
// Example #1
|
||||
```php-inline Example #1
|
||||
$configuration->setField('index', 'My field', TextField::class, [
|
||||
'raw' => true,
|
||||
'property_builder' => function($entity, array $options) {
|
||||
|
@ -129,7 +129,7 @@ $configuration->setField('index', 'My field', TextField::class, [
|
|||
},
|
||||
])
|
||||
|
||||
// Example #2
|
||||
```php-inline Example #2
|
||||
// https://127.0.0.7:8000/admin/my_entity?_sort=property&_sort_direction=asc
|
||||
$configuration->setField('index', 'My field', TextField::class, [
|
||||
'property' => 'myProperty'
|
||||
|
@ -140,7 +140,7 @@ $configuration->setField('index', 'My field', TextField::class, [
|
|||
}],
|
||||
])
|
||||
|
||||
// Example #3
|
||||
```php-inline Example #3
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||
use Symfony\Component\Validator\Constraints\NotBlank;
|
||||
|
|
Loading…
Reference in a new issue