Themes #648
-
Thinking from a multi-theme perspective, as the backpack demo does, I have a few questions: To define menus in BKP5 used code like this:
As I see the demo uses this:
Is it better to use the second one? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Indeed @blondie63 using the blade components allow each theme to output the needed html to work the way intended by the theme developer. This are the docs on available components: https://backpackforlaravel.com/docs/6.x/base-components#available-components-1 Each theme may or may not overwrite those components like in tabler for example: https://github.com/Laravel-Backpack/theme-tabler/blob/main/resources/views/components/menu-dropdown.blade.php Take into consideration that we are aware of some limitations at the moment with the components, one of them the nested menus that we are working out here: Laravel-Backpack/CRUD#5289 About the Cheers |
Beta Was this translation helpful? Give feedback.
Indeed @blondie63 using the blade components allow each theme to output the needed html to work the way intended by the theme developer.
This are the docs on available components: https://backpackforlaravel.com/docs/6.x/base-components#available-components-1
Each theme may or may not overwrite those components like in tabler for example: https://github.com/Laravel-Backpack/theme-tabler/blob/main/resources/views/components/menu-dropdown.blade.php
Take into consideration that we are aware of some limitations at the moment with the components, one of them the nested menus that we are working out here: Laravel-Backpack/CRUD#5289
About the
backpack_theme_config()
is documented here: https://ba…