Created
May 27, 2020 14:51
-
-
Save travist/397f54f87d221982433eb85a2c0b277e to your computer and use it in GitHub Desktop.
Form.io Module to edit all editForms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
for (let type in Formio.Components.components) { | |
var component = Formio.Components.components[type]; | |
component.editForm = function() { | |
return { | |
components: [ | |
{ | |
type: 'textfield', | |
label: 'Label', | |
key: 'label' | |
} | |
] | |
}; | |
}; | |
} | |
return {}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment