javascript - Define attach-point programmatically -
javascript - Define attach-point programmatically -
i define custom widget, create dijit/form/button within , add together attach point it. reason attach-point remains invisible..
postcreate: function() { require(["dijit/form/button", "dojo/dom", "dojo/domready!"], function(button, dom){ // create button programmatically: var mybutton = new button({ label: "click me!", "data-dojo-attach-point": "mybutton" }, "progbuttonnode").startup(); }); console.debug(this.mybutton); // returns undefined }
technically can it. dojo indexes attach-points on parse. if going add together button dynamically you'll have parse dom too.
javascript dojo
Comments
Post a Comment