u('#collapsibleMenu');
menu.renderer = function(element, item){
  hx.select(element).text(item.text || item)
};
menu.render([
  {
    text: 'Item 1',
    children: [
      'Sub item 1',
      'Sub item 2',
    ]
  },
  {
    text: 'Item 2',
    children: [
      'Sub item 1',
      'Sub item 2',
    ]
  }
])</script></div><div class="docs-example-code-body"><div class="example-code-section"><h3>HTML</h3><div class="qm-code-highlight-codeblock language-html"><pre><code class="qm-code-font"><span class="hljs-