angular
angular copied to clipboard
How to remove individual options (such as Display/Label Position or Data/Persistent).
Hello. How can you remove individual options in the components so that only the most important settings are displayed?
I've already tried this, but I can't remove the "Label Position" option:
Formio.builder(document.getElementById('builder'), {}, {
builder: {
basic: false,
advanced: false,
data: false,
layout: false,
premium: false,
customBasic: {
title: 'Formularfelder',
default: true,
weight: 0,
components: {
textfield: true,
textarea: true,
email: true,
phoneNumber: true
}
}
},
editForm: {
textfield: [
{ key: 'api', ignore: true },
{ key: 'logic', ignore: true },
{ key: 'layout', ignore: true },
{ key: 'conditional', ignore: true },
{ key: 'labelPosition', ignore: true },
{ key: 'display.labelPosition', ignore: true },
{ labelPosition: false },
]
}
}).then(function(builder) {
builder.on('saveComponent', function() {
console.log(builder.schema);
});
});
Is there somehow an overview of the “key” names used?