/span>,<span class="hljs-string">"item 2"</span>,<span class="hljs-string">"item 3"</span>])

<span class="hljs-keyword">var</span> renderer = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">elem, item</span>)</span>{
  hx.select(elem).text(item.name)
}

disabledMenu = <span class="hljs-keyword">new</span> hx.Menu(<span class="hljs-string">'#menuDisabled'</span>)
disabledMenu.renderer = renderer
disabledMenu.render([
  {
    <span class="hljs-attr">name</span