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
|
@ -98,17 +98,18 @@ $configuration->setField('index', 'Title', Field\TextField::class, [
|
||||||
|
|
||||||
All fields have these options:
|
All fields have these options:
|
||||||
|
|
||||||
| Option | Type | Default | Description |
|
| Option | Type | Default | Description |
|
||||||
| ------ | ---- | ------- | ----------- |
|
| ------ | ---- | ------- | ----------- |
|
||||||
| `property` | `string` | `null` | Entity's property to display |
|
| `property` | `string` | `null` | Entity's property to display |
|
||||||
| `property__builder` | `callable` | `null` | A callable data and used to generate the content displayed |
|
| `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 |
|
| `view` | `string` | `@Core/admin/crud/field/text.html.twig` | The templated rendered |
|
||||||
| `action` | `string` | `null` | An action to perform on click (`null`, `edit`, `view`) |
|
| `default_value` | `string` | `null` | Default value |
|
||||||
| `raw` | `boolean` | `false` | Render as HTML |
|
| `action` | `string` | `null` | An action to perform on click (`null`, `edit`, `view`) |
|
||||||
| `sort` | `array|callable` | `null` | Defines how to sort |
|
| `raw` | `boolean` | `false` | Render as HTML |
|
||||||
| `href` | `string|callable` | `null` | Data to generate a link |
|
| `sort` | `array | callable` | `null` | Defines how to sort |
|
||||||
| `href_attr` | `array|callable` | `null` | Attributes of the link |
|
| `href` | `string | callable` | `null` | Data to generate a link |
|
||||||
| `inline_form` | `null|callable` | `null` | A method to define a form to edit datas |
|
| `href_attr` | `array | callable` | `null` | Attributes of the link |
|
||||||
|
| `inline_form` | `null | callable` | `null` | A method to define a form to edit datas |
|
||||||
|
|
||||||
|
|
||||||
```php-inline title="Example #0"
|
```php-inline title="Example #0"
|
||||||
|
@ -208,9 +209,10 @@ $configuration->setField('index', 'My field', TextField::class, [
|
||||||
|
|
||||||
`App\Core\Crud\Field\BooleanField`
|
`App\Core\Crud\Field\BooleanField`
|
||||||
|
|
||||||
| Option | Type | Default | Description |
|
| Option | Type | Default | Description |
|
||||||
| ------ | ---- | ------- | ----------- |
|
| ------ | ---- | ------- | ----------- |
|
||||||
| `view` | `string` | `@Core/admin/crud/field/boolean.html.twig` | The templated rendered |
|
| `view` | `string` | `@Core/admin/crud/field/boolean.html.twig` | The templated rendered |
|
||||||
|
| `display` | `string` | `toggle` | Type of render (`toggle` or `checkbox`) |
|
||||||
|
|
||||||
## setMaxPerPage
|
## setMaxPerPage
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue