Customize the Tab Bar
SurveyJS offers the flexibility to add, remove, and modify tabs in its Form Builder UI to implement additional functionality as needed. In this example, we demonstrate how to manage built-in tabs and create a custom "Survey Templates" tab that enables survey authors to quickly load boilerplate surveys into Survey Creator for further customization.
Manage Built-In Survey Creator Tabs
Survey Creator includes six built-in tabs. To specify the visibility of each tab, use a dedicated configuration property:
By default, the Designer, Preview, Logic, and JSON Editor tabs are visible, while the Translations and Themes tabs are hidden. In this demo, the Translations tab is made visible by setting the showTranslationTab property to true.
Add a Custom Survey Creator Tab
If you want to add a custom tab to Survey Creator, follow the instructions below:
- Implement a custom component that renders tab markup. 
 In this demo, the component renders buttons that load different JSON schemas into Survey Creator.
- Register your component under a custom name in the component collection. 
 In HTML/CSS/JavaScript projects, register the component in- ReactElementFactoryas shown in the- index.jsfile.
 In React, register the component in- ReactElementFactoryas shown in the- SurveyCreatorComponent.jsxfile.
 In Angular, register the component in- AngularComponentFactoryas shown in the- survey-templates-tab.component.tsfile.
 In Vue.js, use techniques native to this framework.
- Configure a tab plugin. 
 A tab plugin is an object that allows you to handle user interactions with a tab. The tab plugin object must specify the- activateand- deactivatefunctions. They are executed when users switch to or from the tab and allow you to handle and cancel the switch if necessary. In this demo,- activateis empty, and- deactivatealways returns- true, which means that they do not interfere with user interactions in any way.
- Register a custom tab. 
 Call the- addTab(tabOptions)method on a- SurveyCreatorModelinstance to register a custom tab.