add boolean field new options
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
e05ea9052f
commit
6dccd603d7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue