-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make action button icons configurable #7166
Changes from all commits
95fed51
90c5ff6
53be8cd
89f9a14
e1f1401
5b8639a
42e0be7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -699,6 +699,20 @@ You need to add option ``show_mosaic_button`` in your admin services: | |||||
tags: | ||||||
- { name: sonata.admin, manager_type: orm, group: admin, label: News, show_mosaic_button: false } | ||||||
|
||||||
Icons on action buttons | ||||||
----------------------- | ||||||
|
||||||
You can choose if the action buttons on the list-page show an icon, text or both. | ||||||
|
||||||
.. code-block:: yaml | ||||||
|
||||||
# config/packages/sonata_admin.yaml | ||||||
|
||||||
sonata_admin: | ||||||
options: | ||||||
# Choices are: text,icon or both (default) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
button_mode: icon | ||||||
|
||||||
Checkbox range selection | ||||||
------------------------ | ||||||
|
||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -157,6 +157,14 @@ public function getConfigTreeBuilder() | |||||
'skin-yellow-light', | ||||||
]) | ||||||
->end() | ||||||
->enumNode('button_mode') | ||||||
->defaultValue('both') | ||||||
->values([ | ||||||
'both', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should use a more representative term here, while bringing more flexibility to this feature. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What could we add in the future ? Prior to this change this was always button + text, I don't know what could be added. Do you have another suggestion ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think "all", "full" or something like that could be good choices. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could also add context to the list. |
||||||
'icon', | ||||||
'text', | ||||||
]) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
->end() | ||||||
->booleanNode('use_select2')->defaultTrue()->end() | ||||||
->booleanNode('use_icheck')->defaultTrue()->end() | ||||||
->booleanNode('use_bootlint')->defaultFalse()->end() | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?