-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Draft: Use Combobox for post-meta and custom sources block bindings.Initial commit #67447
base: trunk
Are you sure you want to change the base?
Conversation
Size Change: +102 B (+0.01%) Total Size: 1.83 MB
ℹ️ View Unchanged
|
Can be useful if you have a lot. But now you have to search in order to see anything at all, even if you just have a few attributes. Is there a way to show at least, say, 8 items always? It's likely not going to be the majority of sites having such few attributes, if they use them at all. |
I think that's a I can add a |
I think you might want to set In terms of how many items to display, with the current item height there will be ~2-2.5 results displayed, so you might want to override the |
I added the height to be able to display more items. |
I understand the uncertainty there and I don't have strong feelings either way; my suggestion was mostly to address @jasmussen's concerns:
|
The main thing is striking the right balance. Forcing you to search if you have only two or three bindings may be too much, since that could be the 80% use case. |
If 80% of the time we'll have two or three bindings, then we might as well not use a combobox but just a regular select/dropdown field? |
To be fair, that's a question from my end! So far I've only used bindings for basic stuff, quote of the day, random image, that sort of thing. But depending on experience and feedback on these it could simply be a progressive thing, and that's perhaps what you suggest: if there are less than 10 bindings, just show them in the flyout. If there's more than 10, do the combobox. |
Sounds like a good plan to me 👍 And then the autofocusing wouldn't feel as awkward. |
All of these are just experiments to enable this discussions 😅 |
What?
Similar to #67012. This time I'm experimenting with using the combobox for the custom source fields list selection. This allows to have a search box.
Testing Instructions
Demo:
combobox.mp4