SOURCE CODE: Uize.Widgets.NavTree.Menu.Html (view docs)

<%@
  input ({
    idPrefix:'string'
  });
%><%
  var
    _idPrefix = input.idPrefix,
    _htmlChunks = []
  ;
  m.traverseTree ({
    itemHandler:function (_item,_itemSpecifier,_depth) {
      _htmlChunks.push (
        m.Class.itemIsDivider (_item)
          ? (
            '
 
' ) : ( '' + _item.title + '' ) ); }, beforeSubItemsHandler:function (_item,_itemSpecifier,_depth) { _htmlChunks.push ( '
' ); }, afterSubItemsHandler:function () {_htmlChunks.push ('
\n')} }); %>
<%= _htmlChunks.join ('') %>