update doc about fields
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
f2ba285349
commit
ced292d93e
|
@ -103,6 +103,7 @@ All fields have these options:
|
|||
| `property` | `string` | `null` | Entity's property to display |
|
||||
| `property__builder` | `callable` | `null` | A callable data and used to generate the content displayed |
|
||||
| `view` | `string` | `@Core/admin/crud/field/text.html.twig` | The templated rendered |
|
||||
| `default_value` | `string` | `null` | Default value |
|
||||
| `action` | `string` | `null` | An action to perform on click (`null`, `edit`, `view`) |
|
||||
| `raw` | `boolean` | `false` | Render as HTML |
|
||||
| `sort` | `array | callable` | `null` | Defines how to sort |
|
||||
|
@ -211,6 +212,7 @@ $configuration->setField('index', 'My field', TextField::class, [
|
|||
| 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`) |
|
||||
|
||||
## setMaxPerPage
|
||||
|
||||
|
|
Loading…
Reference in a new issue