Skip to content

Handle multiple selects#97

Open
samylaumonier wants to merge 2 commits into
djhi:masterfrom
samylaumonier:master
Open

Handle multiple selects#97
samylaumonier wants to merge 2 commits into
djhi:masterfrom
samylaumonier:master

Conversation

@samylaumonier

@samylaumonier samylaumonier commented Apr 18, 2016

Copy link
Copy Markdown

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
Copy Markdown
Author

Any news?

@tomhalley

Copy link
Copy Markdown

+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