+ Experimental feature
+ Details forms are still under development. For now, it's just a lot of Static components instead of
+ editing components. Also,
+ it only works when the field doesn't explicitly specify the component, and it does'nt work for all types. Arrays,
+ for instance, are still not supported.
+
+ );
+ }
+
+ return null;
+ };
+
+ getAutoform = () => {
+ let { preset } = this.props;
+
+ preset = preset || 'default';
+
+ let presetObject = _.find(presets, p => p.name == preset);
+ let autoFormProps;
+ let autoForm;
+
+ if (!presetObject) {
+ throw Error(`Could not find preset. Preset name: ${preset}`);
+ }
+
+
+ try {
+ autoFormProps = this.getAutoFormProps(preset, presetObject.initialValues);
+ autoForm = autoFormProps ?