Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Example of dojo script using widgets?



Example of dojo script using widgets?..

Answer / 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

More Dojo Toolkit Interview Questions

What are the various components of the dojo framework?

1 Answers  


what makes a widget?

1 Answers  


What is dijit?

1 Answers  


What is widget toolkit in dojo?

1 Answers  


How much dojo do I need to know in order to use the arcgis api for javascript?

1 Answers  


what is the difference between JQuery and Dojo?

1 Answers  


When should you use dojo?

1 Answers  


what is Dojo?

1 Answers  


Example on drag and drop in dojo framework?

1 Answers  


Mention some of the disadvantages/drawbacks of dojo?

1 Answers  


what are application support libraries in Dojo?

1 Answers  


What are the several dijit layout widgets?

1 Answers  


Categories