Open sprajapatiDev opened 9 months ago
@sprajapatiDev How can we remove(customize component) like if we don't want collectons component or TreePicker
Hello, you can edit the list of components using the FormBuilder ref:
<DWKitFormBuilder
ref={(builder) => {
formbuilder = builder;
const controls = formbuilder.dwKitControls;
const controlsForHide = ['treepicker', 'dropzone']
controls.items = controls.items.filter(({key}) => !controlsForHide.includes(key))
//FOR EDIT
const buttonControl = controls.items.find(({key}) => key === 'button')
buttonControl.key = 'MyButton'
buttonControl.title = 'MyButton'
console.log(buttonControl)
}}
...
add this code here: https://github.com/optimajet/formbuilder/blob/master/demo/formbuilderdev-builder.js
Hi @sergeythrees , Thanks for solution . I have one query also If I sign on signature component after click on upload button it will disappear. Below I provide a screenshot.
Hi @sergeythrees ,
Thanks for solution .
I have one query also If I sign on signature component after click on upload button it will disappear. Below I provide a screenshot.
Thanks for noticing the bug. We will fix it soon.
sure
Hi @sergeythrees ,
can we remove the highlighted part after we click on save button and show only form
Hi @sergeythrees ,
can we remove the highlighted part after we click on save button and show only form
How can we remove(customize component) like if we don't want collectons component or TreePicker