Skip to content
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

Handle multiple selects #97

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

samylaumonier
Copy link

@samylaumonier samylaumonier commented Apr 18, 2016

Multiple selects are supported by Materialize:

You can add the property multiple to get the multiple select and select several options.

Example

This is the generated field:
Generated field

And you can select several options:
capture d ecran de 2016-04-18 19-03-51

I used this schema (and the quickForm component):

const example = new SimpleSchema({
  sports: {
    type: [String],
    label: 'Sports',
    autoform: {
      defaultValue: ['badminton', 'basketball'],
      options: [
        { label: 'Badminton 2x2', value: 'badminton' },
        { label: 'Basket-ball', value: 'basketball' },
        { label: 'Football 5x5', value: 'football' }
      ]
    }
  }
});

@samylaumonier
Copy link
Author

Any news?

@tomhalley
Copy link

+1 please merge this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants