Material-ui: Multiselect for SelectField and AutoComplete

Created on 2 Dec 2015  路  6Comments  路  Source: mui-org/material-ui

Hello,

I am utilizing select fields and auto complete a lot in my app and I'd like to know if there are plans for adding multi-select for these fields. I think multi-select is widely required feature that a lot of developers can benefit from.

Thanks!

duplicate

Most helpful comment

+1
I wish there is something like React-Select

screen shot 2016-04-15 at 4 44 26 pm

All 6 comments

I think that it would be a good feature. As far as I have think about it, it should many require to change the SelectField聽component.
For the AutoComplete what do you want to achieve something like https://www.google.com/design/spec/components/chips.html#chips-behavior?
Hence, I think that we should create a new component.

Should we just consider expanding the current AutoComplete implementation to be a select field that can have one or several values?

To support chips, we could possibly expose a prop that accepts a function that customizes the rendering of the values, such as the valueRenderer prop in the react-select component.

For example, the code below would show each value as a chip with an avatar as the first letter of the display name kind of like this -> (J) John Smith )

<AutoComplete valueRenderer={(value) => {
  return <Chip avatar={<Avatar>{value.displayName[0]}}</Avatar>}>
    {value.displayName}
  </Chip>
}} { ...otherProps} />

If a custom valueRenderer is not provided, we can use a default implementation that displays the value the way it currently does.

I like the idea of a valueRenderer.

+1
is there any progress?

i would love to see a component like the one from MaterializeCSS:
multiSelect

+1
I wish there is something like React-Select

screen shot 2016-04-15 at 4 44 26 pm

Closing this as its a duplicate of https://github.com/callemall/material-ui/issues/1956

Was this page helpful?
0 / 5 - 0 ratings