Skip to content
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

Add support for dashboard tabs #14865

Open
wants to merge 9 commits into
base: 3.x
Choose a base branch
from

Conversation

ralphjsmit
Copy link
Contributor

@ralphjsmit ralphjsmit commented Nov 22, 2024

This PR adds support for adding tabs on your dashboard. In case you have many widgets, it makes sense to split them by separate tabs. The implementation is based on the Resource tabs implementation, with the only difference that the Dashboard tabs are implemented on the Alpine-side instead of Livewire due to performance (if Livewire is still (lazy) loading widget on a tab, then switching tabs would be unresponsive until all (slow) widgets are completely loaded).

Users can mark their widgets as belonging to a tab using a protected static ?string $tab = 'Label'; property. This is the same principle as eg the $navigationGroup property, that also matches navigation group by it's label.

Dashboard.Tabs.mov

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

1 participant