import baseEditForm from 'formiojs/components/_classes/component/Component.form';
export default (...extend) => {
return baseEditForm(
[
{
key: 'display',
components: [
{
// You can ignore existing fields.
key: 'placeholder',
ignore: true,
},
{
// Or add your own. The syntax is form.io component definitions.
type: 'textfield',
input: true,
label: 'My Custom Setting',
weight: 12,
key: 'myCustomSetting', // This will be available as component.myCustomSetting
},
],
},
{
key: 'data',
components: [],
},
{
key: 'validation',
components: [],
},
{
key: 'api',
components: [],
},
{
key: 'conditional',
components: [],
},
{
key: 'logic',
components: [],
},
],
...extend
);
};
`
The above configuration is not adding the custom property to the configuration model while I try to add the custom text field.
What is the correct way to do it?
I have a Custom Text field component, which is. created by extending Textfield component as follows,
`/ tslint:disable /
` editform.js is as follows
`
The above configuration is not adding the custom property to the configuration model while I try to add the custom text field. What is the correct way to do it?
Thanks!