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

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -