mirror of
https://github.com/vale981/Vulcan
synced 2025-03-11 13:06:41 -04:00
20 lines
650 B
JavaScript
20 lines
650 B
JavaScript
import React from 'react';
|
|
import { intlShape } from 'meteor/vulcan:i18n';
|
|
import Form from 'react-bootstrap/lib/Form';
|
|
import { Components, registerComponent } from 'meteor/vulcan:core';
|
|
|
|
const SelectMultipleComponent = ({ refFunction, inputProperties, itemProperties }, { intl }) => {
|
|
inputProperties.multiple = true;
|
|
|
|
return (
|
|
<Components.FormItem {...inputProperties} {...itemProperties}>
|
|
<Form.Control as="select" {...inputProperties} ref={refFunction} />
|
|
</Components.FormItem>
|
|
);
|
|
};
|
|
|
|
SelectMultipleComponent.contextTypes = {
|
|
intl: intlShape,
|
|
};
|
|
|
|
registerComponent('FormComponentSelectMultiple', SelectMultipleComponent);
|