-
-
Notifications
You must be signed in to change notification settings - Fork 287
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
new SelectOptions
control for select options
#443
Conversation
Your Render PR Server URL is https://toolpad-pr-443.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-ca33ilcgqg4b21pumrp0. |
Screen.Recording.2022-05-19.at.6.12.01.PM.movOther possible UI options: Creating Chips when a user presses the space bar to create an option, but I felt like the text editor is less friction in cases when someone would prefer pasting in a lot of options |
Hey Bharat, a UI suggestion that came to mind when looking at the video:
|
Or perhaps we could actually have a "confirm" button to confirm adding/deleting the options (which would close the modal too), and until you pressed it all the changes you made would be temporary. |
|
|
I'm fine with using newlines as delimiter when pasting text in the box
In any case, adding a label should be optional. |
Your Render PR Server URL is https://toolpad-pr-443.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-ca7014b0tnummsfm5se0. |
Screen.Recording.2022-05-25.at.3.41.33.PM.mov(Note that I've fixed the issue of the last edited option opening up again on reopening the dialog which appears in the video) |
Overall looks great, Bharat! |
packages/toolpad-app/src/components/propertyControls/SelectOptions.tsx
Outdated
Show resolved
Hide resolved
packages/toolpad-app/src/components/propertyControls/SelectOptions.tsx
Outdated
Show resolved
Hide resolved
packages/toolpad-app/src/components/propertyControls/SelectOptions.tsx
Outdated
Show resolved
Hide resolved
I agree and I tried it, but it did feel a bit redundant to have two ways to open the edit flow for each option. So:
|
I see what you mean about the UX consistency, maybe clicking on the element you want to edit is a more consistent pattern with how the editor works... On second thought I think this behavior may be fine after all in my opinion. |
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.
great!
Fixes #393