Vulcan/packages/vulcan-ui-bootstrap/lib/components/forms/SelectMultiple.jsx

17 lines
601 B
React
Raw Normal View History

import React from 'react';
import { intlShape } from 'meteor/vulcan:i18n';
2019-01-24 18:01:53 +09:00
import { Form } from 'react-bootstrap';
import { Components, registerComponent } from 'meteor/vulcan:core';
const SelectMultipleComponent = ({refFunction, inputProperties, ...properties}, { intl }) => {
inputProperties.multiple = true;
2019-01-24 18:01:53 +09:00
return <Components.FormItem {...inputProperties}><Form.Control as="select" {...inputProperties} ref={refFunction}/></Components.FormItem>;
};
SelectMultipleComponent.contextTypes = {
intl: intlShape,
};
registerComponent('FormComponentSelectMultiple', SelectMultipleComponent);