meteor-autoform-materialize
meteor-autoform-materialize copied to clipboard
Handle multiple selects
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:
And you can select several options:
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' }
]
}
}
});
Any news?
+1 please merge this