Vulcan/packages/nova-forms/lib/export.js

16 lines
568 B
JavaScript
Raw Normal View History

import { SimpleSchema } from 'meteor/aldeed:simple-schema';
import { registerComponent } from 'meteor/nova:core';
2016-06-14 16:36:05 +09:00
if (typeof SimpleSchema !== "undefined") {
SimpleSchema.extendOptions({
2016-12-20 09:27:16 +09:00
control: Match.Optional(Match.Any), // SmartForm control (String or React component)
2016-06-14 16:36:05 +09:00
order: Match.Optional(Number), // order in the form
group: Match.Optional(Object), // form fieldset group
beforeComponent: Match.Optional(Match.Any),
afterComponent: Match.Optional(Match.Any)
2016-06-14 16:36:05 +09:00
});
}
import FormWrapper from './FormWrapper.jsx';
export default FormWrapper;