What is the best way to code a full Dojo web application? -




i trying code medium sized full web application based off dojo.

i have basic bordercontainer placed @ document.body.

bordercontainer

in order make code maintainable , easy read, want put contained widgets/modules in each of sections. can added couple lines such as...

var toptabs = new toptabs();  top.addchild(toptabs);

and want stitch them can invoke work in each of other widgets, in order follow mvc model.

so instance, 1 example insert following widget contained top section looks like...

example

so question is....

what best way create these defined , encapsulated widgets/modules?

since widgets contain other dijits, template based widgets route go? or better create widgets/modules purely programmatically defined?

thanks

depends how familiar / comfortable declarative/html (templated) versus programmatic/javascript. can go both routes;

i seldom use templates, static nature , mean 2 set of entities in 2 languages, 2 files, account for. besides, dojo/dom-construct & dojo/dom-style, have effective dynamic replacement html templates, allowing build self-contained complex widgets jc





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -