var popup = new photonui.PopupWindow({ width: 200, height: 200 }); var button = new photonui.Button({ text: "Click me to display the popup", buttonColor: "blue", callbacks: { click: function(widget, event) { popup.popupWidget(widget); } } }); photonui.domInsert(button, "demo");
|