meteor-autoform-materialize icon indicating copy to clipboard operation
meteor-autoform-materialize copied to clipboard

Handle multiple selects

Open samylaumonier opened this issue 8 years ago • 2 comments

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 avatar Apr 18 '16 17:04 samylaumonier

Any news?

samylaumonier avatar Sep 17 '16 13:09 samylaumonier

+1 please merge this

tomhalley avatar Oct 10 '16 22:10 tomhalley