Vulcan/packages/vulcan-ui-bootstrap/lib/components/forms/SelectMultiple.jsx
2019-01-26 21:21:09 +09:00

16 lines
606 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, ...properties}, { intl }) => {
inputProperties.multiple = true;
return <Components.FormItem {...inputProperties}><Form.Control as="select" {...inputProperties} ref={refFunction}/></Components.FormItem>;
};
SelectMultipleComponent.contextTypes = {
intl: intlShape,
};
registerComponent('FormComponentSelectMultiple', SelectMultipleComponent);