Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Component #31

Open
sprajapatiDev opened this issue Sep 11, 2023 · 6 comments
Open

Remove Component #31

sprajapatiDev opened this issue Sep 11, 2023 · 6 comments

Comments

@sprajapatiDev
Copy link

How can we remove(customize component) like if we don't want collectons component or TreePicker
img1

@sergeythrees
Copy link

sergeythrees commented Sep 11, 2023

@sprajapatiDev
How can we remove(customize component) like if we don't want collectons component or TreePicker img1

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

@sprajapatiDev
Copy link
Author

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.
Screenshot 2023-09-11 173728
Screenshot 2023-09-11 173746

@sergeythrees
Copy link

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.

Screenshot 2023-09-11 173728

Screenshot 2023-09-11 173746

Thanks for noticing the bug. We will fix it soon.

@sprajapatiDev
Copy link
Author

sure

@sprajapatiDev
Copy link
Author

Hi @sergeythrees ,

can we remove the highlighted part after we click on save button and show only form
hgh

@sergeythrees
Copy link

Hi @sergeythrees ,

can we remove the highlighted part after we click on save button and show only form hgh

Yes, https://formbuilder.dev/documentation/form

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants