Closed MarioVillani closed 4 months ago
$withColumns parameter in menu-dropdown.blade.php is a parameter is not defined in component file himself
I think @pxpm fixed that in d124fcb 👍
Thanks and sorry guys for the bad experience.
Just pushed the fix in 1.2.2.
I didn't wanted to bump crud version and forgot to add the check if the variable is set 🤷
I will add docs too about it tomorrow, basically allows you to create menus like in tabler demo, side by side:
You will still need to update CRUD if you want to use this new functionality as you saw by this error.
Cheers
Edit, example menu:
<x-backpack::menu-dropdown title=" Pricing" icon="la la-group">
<x-backpack::menu-dropdown-item title=" A" icon="las la-euro-sign" link="https://example.com" />
<x-backpack::menu-separator />
<x-backpack::menu-dropdown title=" A1" icon="la la-group" nested="true">
<x-backpack::menu-dropdown-item title=" A1.1" icon="las la-euro-sign" link="https://example.com" />
<x-backpack::menu-dropdown-item title=" A1.2" icon="las la-euro-sign" link="https://example.com" />
<x-backpack::menu-dropdown title=" B3" icon="la la-group" nested="true" :withColumns="true">
<x-theme-tabler::menu-dropdown-column>
<x-backpack::menu-dropdown-item title=" B3.1" icon="las la-caret-right" link="https://example.com" />
<x-backpack::menu-separator />
<x-backpack::menu-dropdown-item title=" B3.2" icon="las la-caret-right" link="https://example.com" />
</x-theme-tabler::menu-dropdown-column>
<x-theme-tabler::menu-dropdown-column>
<x-backpack::menu-dropdown-item title=" B3.1" icon="las la-caret-right" link="https://example.com" />
<x-backpack::menu-dropdown-item title=" B3.2" icon="las la-caret-right" link="https://example.com" />
</x-theme-tabler::menu-dropdown-column>
</x-backpack::menu-dropdown>
</x-backpack::menu-dropdown>
</x-backpack::menu-dropdown>
Bug report
What I did
Install latest theme tabler version
What I expected to happen
Theme working
What happened
local.ERROR: Undefined variable $withColumns after logging in in Backpack dashboard.
1 /home/myproject/vendor/backpack/theme-tabler/resources/views/components/menu-dropdown.blade.php(43): Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()
Context to replicate the bug - Backpack, Laravel, PHP, DB version
When I run
php artisan backpack:version
the output is: