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

This commit is contained in:
Simon Vieille 2023-08-31 18:00:54 +02:00
parent e05ea9052f
commit 6dccd603d7
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -209,10 +209,14 @@ $configuration->setField('index', 'My field', TextField::class, [
`App\Core\Crud\Field\BooleanField`
| Option | Type | Default | Description |
| ------ | ---- | ------- | ----------- |
| `view` | `string` | `@Core/admin/crud/field/boolean.html.twig` | The templated rendered |
| `display` | `string` | `toggle` | Type of render (`toggle` or `checkbox`) |
| Option | Type | Default | Description |
| ------ | ---- | ------- | ----------- |
| `view` | `string` | `@Core/admin/crud/field/boolean.html.twig` | The templated rendered |
| `display` | `string` | `toggle` | Type of render (`toggle` or `checkbox`) |
| `checkbox_class_when_true` | `string` | `fa-check-square` | HTML class added when the value is `true` and display is `checkbox` |
| `checkbox_class_when_false` | `string` | `fa-square` | HTML class added when the value is `false` and display is `checkbox` |
| `toggle_class_when_true` | `string` | `bg-success` | HTML class added when the value is `true` and display is `toggle` |
| `toggle_class_when_false` | `string` | `bg-secondary` | HTML class added when the value is `false` and display is `toggle` |
## setMaxPerPage