-
Notifications
You must be signed in to change notification settings - Fork 56
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
feat: add customizable form header to auto crud #1930
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1930 +/- ##
=======================================
Coverage 95.24% 95.25%
=======================================
Files 52 52
Lines 3469 3474 +5
Branches 514 519 +5
=======================================
+ Hits 3304 3309 +5
Misses 134 134
Partials 31 31
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
205bba5
to
193f41e
Compare
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 1 New issue |
Export type for AutoCrudForm headerRender follow up for #1930
This ticket/PR has been released with Hilla 24.4.0.alpha1 and is also targeting the upcoming stable 24.4.0 version. |
Adds a customizable header above the form in
AutoCrud
. By default it showsNew item
andCreate item
depending on whether a new item is created or an existing one edited. It's also possible to customize the header by providing a function that renders a custom JSX element based on the edited item and the disabled state of the form. The header is part of theAutoCrud
for now instead of theAutoForm
. Otherwise it would have been a challenge to move it into the header of the dialog that shows up on smaller screens.Disabled:
Editing:
Creating:
Fixes: #1664