-
Notifications
You must be signed in to change notification settings - Fork 10
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
Menu::make method and public getItems for faster prototyping menus and micro menus rendering. #109
base: master
Are you sure you want to change the base?
Conversation
Separate render operation in two methods: make and render
Allow public getter to be able to iterate items outside a presentable (using Menu::make)
*/ | ||
public function render(string $name, string $presenter = null, array $bindings = [], bool $specialSidebar = false): ?string | ||
public function make(string $name, string $presenter = null, array $bindings = [], bool $specialSidebar = false): ?MenuGenerator |
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.
Avoid unused parameters such as '$presenter'.
*/ | ||
public function render(string $name, string $presenter = null, array $bindings = [], bool $specialSidebar = false): ?string | ||
public function make(string $name, string $presenter = null, array $bindings = [], bool $specialSidebar = false): ?MenuGenerator |
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.
Avoid unused parameters such as '$specialSidebar'.
StyleCI fixes
StyleCI fixes
code coverage fixes
codestyle fixes
codestyle fixes
codestyle fixes
codestyleci fixes
codestyle fixes
Code Climate has analyzed commit e487742 and detected 2 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
I don't know how to fix codeclimate issues, any clue? |
Rinvex Menus features are solid: multiple menus, item attributes and properties, nesting and dropdowns, and presenters.
People gets very creative about menus.
In our case we are prototyping menus for a new app and coding presentables is not the right moment yet.
We are using tabler, a derivative from bootstrap 5 with some twists so we cannot use default ones even if blade templates were made for BS5. They are currently made for BS4.
Apart from that we are using TwigBridge.
With this pull developers can make: