The only custom tab you show on your site inserts html to the tab via a "text/html" type script
Creating custom tab:
JavaScriptthis.surveyCreator.tabs().push({
name: "custom-options",
title: "Custom Options",
template: "custom-tab-survey-templates",
action: () => {
this.surveyCreator.makeNewViewActive("custom-options");
},
data: {},
});
Injecting html
HTMLrender() {
return
<div>
<script type="text/html" id="custom-tab-survey-templates">
{`<div>TEST</div>`}
</script>
<div id="surveyCreatorContainer" />
</div>
}
I'd like to add something more complex to the custom tab. but that doesn't seam possible. I've tried changing the script tag to div, but that has the unfortunate side effect of rendering the div both above the "surveyCreatorContainer" and inside the custom tab.