How to attach pop-up menu to a button?
Pop-up can be easily attached to any button:
This calls for just 2 things:
dhx.ui({ view:"popup", id:"Menu1", body:{ ... } }).hide();
dhx.ui({ { view:"toolbar", type:"MainBar", elements:[{ view:"button", label: "Menu", popup:"Menu1, left"}] })
Related sample: 08_window/13_button_popup.html