How I can integrate a tabs panel to display in each tab a different HTML content and allow also the navigation of those panels, in Google Apps Script HTML Service?
I tried to implement this simple code but it doesn't work, due to caja sanitization, it seems.
<pre><ul id="tabs">
<li><a href="#tab1">Tab 1</a></li>
<li><a href="#tab2">Tab 2</a></li>
<li><a href="#tab3">Tab 3</a></li>
</ul>
<div id="container">
<div class="content">
<a name="tab1" id="tab1"></a>
<h2>Tab 1</h2>
<p>Lorem ipsum dolor sit amet consectetuer ...</p>
</div>
<div class="content">
<a name="tab2" id="tab2"></a>
<h2>Tab 2</h2>
<p>Convallis elit tortor ut ante libero Aenean Maecenas ...</p>
</div>
<div class="content">
<a name="tab3" id="tab3"></a>
<h2>Tab 3</h2>
<p>Urna justo quam nunc urna sem facilisis nibh Curabitur tellus quis...</p>
</div>
</div></pre>
Special attention is paid to ensure HtmlService compatibility with jQueryUi, and this is a good opportunity to use it. The jQueryUi Tabs example will work with very little modification.
Code.gs
tabs.html