-
-
Notifications
You must be signed in to change notification settings - Fork 413
[DashboardLayout] Allow full customization for dashboard header #4820
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
Conversation
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.
Thanks a lot for your contribution!
Added some suggestions that will probably help simplify everything and align with what we think would be the best way to do this.
|
@apedroferreira I lifted the ability to override to the full toolbar and introduced left, mid and right props too. I'm unsure if i should extend: export interface DashboardLayoutSlotProps {
appTitle?: AppTitleProps;
toolbarActions?: {};
toolbarAccount?: AccountProps;
sidebarFooter?: SidebarFooterProps;
toolbar?: {}; // needed?
}And I will dive into updating the docs once you approved of this direction/change. Thanks for your feedback! |
I would really just stick to a single |
|
@apedroferreira Is it good to go now? I don't know how to apply a label |
|
@apedroferreira can I get an update? 🙏 |
|
@apedroferreira I think I solved all the suggestions, can you please add your changes on top however you see beneficial. To be frank I'm starting to lose overview. Would be happy to see this change in next release. Don't think it will break anything, it is just a new feature |
Hey, thanks for your patience. Will do it really soon so we can merge! |
Netlify deploy preview |
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.
Took more work than expected as the header component in the layout needed some refactoring for this.
This header slot should do for now for fully customizing the layout header, and later we can migrate it to a composition API and adjust slots according to that.
Just tagging some more team members in case they have any feedback. As this change is a bit more extensive than originally intended not sure if it will be in time for the next release, or the one after. We'll try to have it live as soon as possible in any case.
|
\ ٩( ᐛ )و // ʕ•̫͡•ʕ̫͡ʕ•͓͡•ʔ-̫͡-ʕ•̫͡•ʔ̫͡ʔ-̫͡-ʔ |



Adds ability to ship your own toolbar, this gives more flexibility, therefore: you can ship your own things, this may as well be the tools Toolpad already provides, such as the account, toolbar and any custom stuff, like a cart, or a search bar, in any given order.
Please let me know if this is in line with the roadmap, or how I can polish my merge request to approval.
Also deprecates
toolbarAccountslot by moving it insidetoolbarActionsslot.https://deploy-preview-4820--mui-toolpad-docs.netlify.app/toolpad/core/react-dashboard-layout/