-
Notifications
You must be signed in to change notification settings - Fork 474
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
How to add a new tab in formio Angular? #554
Comments
You just need to modify the "editForm" of that component and add another tab to the JSON of the tabs component there. Something like this maybe?...
|
Hi @travist Please help!! |
My code above would have edited it for the Text Area component only. Here you are showing Text Field. Is that the issue? |
Hi @travist |
Hi @travist I'll share my code snippet , please let me know where did i missed.
` I've tried to print both console.log statements showing custom tag which shown as below But its not showing in UI :( So, do we need to register or export editForm in above code to reflect in UI? |
We will need some time to work up the prototype for this and provide a more detailed example (as well as try out your example). We may not get to this until later this week, but maybe someone from the community has done this and can provide code snippet. |
I am assuming that the logic of the formio works as if everything were Component. So I followed this concept and it worked here as follows: Formio.builder(document.getElementById('builder'), {},{ //attachMode:'full', editForm: { textfield:[ { key: 'display', //Add in existing tab components: [ { //Add custom field title: 'Add field in existing Tab', key: 'demo1', type: 'textfield', //field type, any existing and valid component label: 'Add field in existing Tab Label', input: true }, { //Removing a existing field key: 'description', ignore: true }, ] }, { key: 'newTab', //ADD new custom TAB label:"NEW Tab", components: [ //ADD custom components in TAB { title: 'First Name', key: 'firstname', type: 'textfield', label: 'First Name', input: true }, { title: 'List Names', key: 'listnames', type: 'textarea', label: 'List Names', input: true }, ] }, { key: 'api', //remove TAB ignore: true } ] } |
how to add click event here like in api tab, add another which add key and tab |
I'd suggest opening a new issue and possibly give some more information on what you are trying to do now? |
thanks for quick response. |
How to add button event in formio? I'm adding custom button in angular formio. |
Hi @travist ,
I been searching through the issues a lot for "Adding custom tab in form io",
Here i elaborate more what's query is ?
After drag any component this is how it appears, is it possible to add custom tab beside to any existing tab?
please help me. Thanks a lot
The text was updated successfully, but these errors were encountered: