Dojo Dijit and HTML5 in Real world applications/HTML5/Declarative VS. Programmatic dijit vidget: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==Declarative VS. Programmatic dijit vidget== * Programmatic widget creation is faster because the working in DOM has an overhead on searching elements that should become widgets...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
In short: Simple thing, feel free to declare the widgets directly in the HTML. For more complex solutions program it in the JavaScript section of the document. | In short: Simple thing, feel free to declare the widgets directly in the HTML. For more complex solutions program it in the JavaScript section of the document. | ||
See real life example: [[Dojo_Dijit_and_HTML5_in_Real_world_applications/Dijit/dijit.form.Button| dijit.form.Button in Programmatic implementation and Declarative markup]] | |||
This is a stub - more to come.. | This is a stub - more to come.. | ||
==Tips and tricks== | |||
Synntax highlight based on html5: | |||
<syntaxhighlight lang="html5"> | |||
</syntaxhighlight> | |||
===Verified in=== | |||
IE 8, Firefox 3.6.22, Dojo 1.6.1 | |||
==References== | |||
[[Category:software development]] | |||
[[Category:HTML5]] | |||
[[Category:Dijit]] |
Latest revision as of 21:03, 22 September 2011
Declarative VS. Programmatic dijit vidget
- Programmatic widget creation is faster because the working in DOM has an overhead on searching elements that should become widgets.
- Declarative widget creation has some limitation on methods
- Declarative widget creation allows you to code simple pages faster. If your page isn't too big, the speed difference between declarative and programmatic widget creation is small.
In short: Simple thing, feel free to declare the widgets directly in the HTML. For more complex solutions program it in the JavaScript section of the document.
See real life example: dijit.form.Button in Programmatic implementation and Declarative markup
This is a stub - more to come..
Tips and tricks
Synntax highlight based on html5:
Verified in
IE 8, Firefox 3.6.22, Dojo 1.6.1