-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Adjust grid editor layout configuration #9887
Adjust grid editor layout configuration #9887
Conversation
Relates to #9410 |
Hi Bjarne, Thanks for the PR 🎉 When testing it a found a couple of smaller things that I have fixed.
You can see my commit here: Does this look ok to you and can I get you to do an extra test with the new fixes? |
Hi Mads Great, I have tested the PR with your changes, and it seems to work as expected. I minor thing is when checking all rows or editors and submit the overlay and re-open it again, it could probably have the "Allow all row configurations" or "Allow all editors" toggle enabled, but I think it has always worked this way. The input fields could be closer the labels by removing the |
Thanks Bjarne for taking you time to do an extra test 🥇 Yes, I agree that the overall design of the dialogs could use some more love. I can see that there is a PR from Nathan with some style clean-up. I will have to see if that also includes some UI love :) I think this PR does what it should and I will get it merged! |
Most of my changes are polish and cleanup, not substantially changing anything. Still be good to merge, nothing wrong with a bit of polish |
Prerequisites
If there's an existing issue for this PR then this fixes #9825
Description
This PR fixes a few issues with configuration of layout/rows.
<button>
element which was</a>
+ added missingtype
attribute on button element.vm
to be a bit more consistent with the rest of code base. I found a functioncloseArea
in row configuration, which doesn't seem to be used, but I have leaved it for now.checklist-model
andchecklist-value
which auto-populated theallowed
array with row names. However since we are using<umb-checkbox>
we need to bind the value to a model, but the row itself was not unique per section/column. I have extended thesections
in the layout with a rows, which basically have a copy of the rows and a selected state. This is used to bind the value on the checkbox and/or if the button element next to it is clicked. On submit this property is deleted again, so we have to original JSON.The might be a better way to handle this in future, but for now it seems to do the trick :)
Layout configuration
Row configuration