The proposed framework for developing your own dojo _dojo

Source: Internet
Author: User
1. Because each version of Dojo changes a lot.
2.Dojo updates are faster, basically 1--2 a new version of the month.
3.Dojo has a lot of imperfections in the actual application, if you do not modify the code, to achieve their desired full functionality is impossible.

The proposed development framework is as follows
Root

-dojo

-dijit

-dojox

_padesk

_dojo
_dijit
_dojox

_util
That is, create a new directory Padesk (sample, you can choose), in the Padesk directory to create a new dojo, Dijit, Dojox directory, you need to modify the components to use in the appropriate directory:
For example:
Dijit.form.Button
We want to customize a button that displays only icon on this basis, it can be defined as Padesk.dijit.form.iconButton

Such a structure, as long as the corresponding module (or even just the corresponding function) has not changed, we copy the Padesk folder to the new version of Dojo, we can immediately use. Save a lot of twists and turns on the original code.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.