Answer Posted / Preeti Chaudhry
Here's an example of a Button widget in Dojo: <pre><code>require(['dijit/Button'], function (Button) { var btn = new Button({ label: 'My Button' }, 'btn_node'); btn.startup(); });</code></pre> In this example, the Button widget is instantiated and started up with a label and a reference to the DOM node where it should be rendered ('btn_node').
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category