add boolean field
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Simon Vieille 2023-07-28 09:18:01 +02:00
parent f00c607115
commit 871e17d232
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -162,16 +162,16 @@ $configuration->setField('index', 'My field', TextField::class, [
`App\Core\Crud\Field\TextField`
| Option | Type | Default | Description |
| ------ | ---- | ------- | ----------- |
| `view` | `string` | `@Core/admin/crud/field/text.html.twig` | The templated rendered |
| Option | Type | Default | Description |
| ------ | ---- | ------- | ----------- |
| `view` | `string` | `@Core/admin/crud/field/text.html.twig` | The templated rendered |
### DateField
`App\Core\Crud\Field\DateField`
| Option | Type | Default | Description |
| ------ | ---- | ------- | ----------- |
| Option | Type | Default | Description |
| ------ | ---- | ------- | ----------- |
| `view` | `string` | `@Core/admin/crud/field/date.html.twig` | The templated rendered |
| `format` | `string` | `Y-m-d` | The date format |
@ -179,8 +179,8 @@ $configuration->setField('index', 'My field', TextField::class, [
`App\Core\Crud\Field\DatetimeField`
| Option | Type | Default | Description |
| ------ | ---- | ------- | ----------- |
| Option | Type | Default | Description |
| ------ | ---- | ------- | ----------- |
| `view` | `string` | `@Core/admin/crud/field/date.html.twig` | The templated rendered |
| `format` | `string` | `Y-m-d H:i:s` | The date format |
@ -188,21 +188,29 @@ $configuration->setField('index', 'My field', TextField::class, [
`App\Core\Crud\Field\ButtonField`
| Option | Type | Default | Description |
| ------ | ---- | ------- | ----------- |
| `view` | `string` | `@Core/admin/crud/field/button.html.twig` | The templated rendered |
| `button_attr` | `array` | `[]` | Button HTML attributes |
| `button_attr_builder` | `callabled` | `null` | A callable data and used to generate `button__attr` |
| `button_tag` | `string` | `button` | HTML tag of the button |
| Option | Type | Default | Description |
| ------ | ---- | ------- | ----------- |
| `view` | `string` | `@Core/admin/crud/field/button.html.twig` | The templated rendered |
| `button_attr` | `array` | `[]` | Button HTML attributes |
| `button_attr_builder` | `callabled` | `null` | A callable data and used to generate `button__attr` |
| `button_tag` | `string` | `button` | HTML tag of the button |
### ImageField
`App\Core\Crud\Field\ImageField`
| Option | Type | Default | Description |
| ------ | ---- | ------- | ----------- |
| `view` | `string` | `@Core/admin/crud/field/image.html.twig` | The templated rendered |
| `image_attr` | `array` | `[]` | Image HTML attributes |
| Option | Type | Default | Description |
| ------ | ---- | ------- | ----------- |
| `view` | `string` | `@Core/admin/crud/field/image.html.twig` | The templated rendered |
| `image_attr` | `array` | `[]` | Image HTML attributes |
### BooleanField
`App\Core\Crud\Field\BooleanField`
| Option | Type | Default | Description |
| ------ | ---- | ------- | ----------- |
| `view` | `string` | `@Core/admin/crud/field/boolean.html.twig` | The templated rendered |
## setMaxPerPage