You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -91,24 +85,21 @@ final class UserGrid extends AbstractGrid implements ResourceAwareGridInterface
91
85
}
92
86
```
93
87
{% endcode %}
88
+
{% endtab %}
89
+
{% endtabs %}
94
90
95
-
</details>
91
+
This configuration will display the value of `$user->getContactDetails()->getEmail()`.
96
92
97
-
This configuration will display the value from
98
-
`$user->getContactDetails()->getEmail()`.
93
+
## DateTime
99
94
100
-
DateTime
101
-
--------
102
-
103
-
This column type works exactly the same way as *string*, but expects a
104
-
*DateTime* instance and outputs a formatted date and time string.
95
+
This column type works exactly the same way as *StringField*, but expects a *DateTime* instance and outputs a formatted date and time string.
105
96
106
97
Available options:
107
-
*`format` - default is `Y:m:d H:i:s`, you can modify it with any supported format (see https://www.php.net/manual/en/datetime.format.php)
108
-
*`timezone` - default is `%sylius_grid.timezone%` parameter, null if such a parameter does not exist, you can modify it with any supported timezone (see https://www.php.net/manual/en/timezones.php)
109
-
110
-
<detailsopen><summary>Yaml</summary>
98
+
*`format` - defaults to `Y:m:d H:i:s`, you can set it to any supported format (see https://www.php.net/manual/en/datetime.format.php)
99
+
*`timezone` - defaults to `%sylius_grid.timezone%` parameter, null if such a parameter does not exist, you can set it to any supported timezone (see https://www.php.net/manual/en/timezones.php)
0 commit comments