></code></pre></div></div><div class="example-code-section"><h3>JavaScript</h3><div class="qm-code-highlight-codeblock language-js"><pre><code class="qm-code-font"><span class="hljs-keyword">var</span> titlebar = <span class="hljs-keyword">new</span> hx.TitleBar(<span class="hljs-string">'.example-heading'</span>)

<span class="hljs-comment">// the options are not normally needed when initialising the sidebar - they are</span>
<span class="hljs-comment">// required for this example since the sidebar is not 