[CRUD] Refactor page titles to pageTitles and pageTitle props#4930
Merged
apedroferreira merged 28 commits intomui:masterfrom Jun 9, 2025
apedroferreira:fix-themed-example-pagetitle
Merged
[CRUD] Refactor page titles to pageTitles and pageTitle props#4930apedroferreira merged 28 commits intomui:masterfrom apedroferreira:fix-themed-example-pagetitle
pageTitles and pageTitle props#4930apedroferreira merged 28 commits intomui:masterfrom
apedroferreira:fix-themed-example-pagetitle
Conversation
Netlify deploy preview |
…ges, adjust 2 playgrounds
pageTitles and pageTitle props
apedroferreira
commented
Jun 5, 2025
Signed-off-by: Pedro Ferreira <[email protected]>
bharatkashyap
approved these changes
Jun 9, 2025
Collaborator
bharatkashyap
left a comment
There was a problem hiding this comment.
Nice enhancement 👍🏻
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As discussed here the way that page titles integrate with CRUD needed improvements.
This PR fixes the issue with a new
pageTitlesprop, and by moving thePageContainerinside theCrudcomponent.Also added a
pageContainerslot so that the page containers can be opted out of or modified.CRUD pages now also take advantage of this to show the current page in the page breadcrumbs.
All necessary changes resulting from this have been added, and the examples can be found in 2 reverted commits in this PR to be merged after the next release.
Unrelated inclusion: also changes CRUD list view data grid so that actions column takes up less space if pinned
https://deploy-preview-4930--mui-toolpad-docs.netlify.app/toolpad/core/react-crud/#custom-page-titles
https://deploy-preview-4930--mui-toolpad-docs.netlify.app/toolpad/core/react-crud/#slots