-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #225 Improve field configuration parsing (javiereguiluz)
This PR was squashed before being merged into the master branch (closes #225). Discussion ---------- Improve field configuration parsing This fixes #220. The main two changes introduced: * Previously, the nice field configuration options were only applied when you configured the view fields explicitly. Now we apply those defaults also when you don't configure anything. An example of the issues that this change solves: if you don't configure the boolean fields, they are displayed as dull badges; if you configure them, they are displayed as cool flip switches. Now the behavior is the same in both cases: flip switches (unless you configure them as booleans). * Previously the documentation said that you could use Doctrine types as the value of the `type` field option. This is wrong. The `type` option only admits Symfony Form types (and the two custom `toggle` and `image` types defined by EasyAdmin). Commits ------- daa73d3 Improve field configuration parsing
- Loading branch information
Showing
3 changed files
with
24 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters