UNPKG

koui

Version:

Knockout UI widgets to help Knockout app development

11 lines 723 B
<li data-bind="subcontextmenu: hasChildren(), click: onClick, clickBubble: false, css: { separator: separator, disabled: disabled }, style: { width: itemWidth() }"> <span class="inner"> <span class="icon-bar"><span class="icon" data-bind="classes: iconCssClass"></span></span> <label data-bind="css: { parent: hasChildren() }, style: { width: labelWidth() }, text: text"></label> </span> <!-- ko if: hasChildren() --> <div class="nocontext" style="position:absolute;" data-bind="css: container.cssClass()"> <ul data-bind="template: { name: 'text!koui/contextmenu/item.html', foreach: subMenu.items, templateEngine: $root.engine }"></ul> </div> <!-- /ko --> </li>