-
Notifications
You must be signed in to change notification settings - Fork 8
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
Multi select component for ui-core #58
Comments
Does this mean that we visually use the same |
Standard
|
@cooper-joe I need this component in the scheduler-app and wouldn't mind implementing this. How do you feel about @Mohammer5's comment above? Is that something that would work for you? Maybe we need the eyes of the others on this as well before we move ahead? |
@ismay Please just create a jira issue and assign it to joe, set the one you're working on to 'blocked by' to express the urgency. Like @cooper-joe has layed out in a comment in #60, that's the procedure we should follow in the future: |
Sure, I’ll create the issue for tracking the work, but I assume @cooper-joe still needs an answer to the question he posed above before he can draft anything. And I assume it’d useful to have any comments before starting the design process. |
The 'Another approach' proposal laid out in @Mohammer5 's comment above looks good to me, it covers all requirements. I will work on the design specs this week so that @ismay can implement this while building the scheduler-app. |
@cooper-joe Then I think we should also use it for single select ( |
@varl Agreed. I'm working on the select as we speak, and to me it makes sense that the default component is a single select that can become much more feature-rich if you pass in multi for multiple selections, filter to add in a search field, and so on. But by default it would be a single select. |
One thing that I'd prefer is if the multi select doesn't include extra features like filtering, etc. Basically, to keep it in ui-core and close to a native multi-select, but with better ux. I'd personally prefer to reserve the additional features for a separate, more complicated component that goes in ui-widgets. Not sure if the others feel that way or not? |
I propose we close this issue and continue discussion based on the initial designs here. |
Our current
<SelectField>
component does not yet support themultiple
attribute. We had a talk about how to build it on slack (see here)Background info
In the talk, Joe asked:
Proposal
Personally I think that having the SelectField stay close to a native SelectField would be nice. It would keep the code and the component simple. My proposal would be this:
multiple
attribute on our SelectField. That would then functionally make it work like the material-ui multi-select, which is closest to our current select-field, and works well I think (though anX
on a chip to remove it might be nice).Combobox
. Which is more dynamic, and has a searchfield, etc.Obviously devs would have to be sensible and not use a SelectField with
multiple
for rendering 10000 items. That's where they'd need to use the ComboBox.Let me know what you think if you want to partake in the amazing journey of the 📯Dhis2 Multiselect! 📯
The text was updated successfully, but these errors were encountered: