An ArcGIS JavaScript viewer for JavaScript widget is a set of text files that can be shared, migrated, and deployed to a javascript view program. Generally, a programmer who wants to develop one or more widgets will close them into a dojo model, as shown in:
A widget can be a Javascript file. The above structure indicates that a complete widget has its own icons for gadgets, templates, configuration files and international support. Generally, a widget encapsulates a group of isolated independent bodies and business logic, allowing you to perform tasks.
The widget programming model contains four JavaScript classes. They are all in the com. ESRI. Solutions. jsviewer space.
_ Widget class (_ widget. JS)
This interface defines the communication method and uses the widgetmanager
Manage gadgets. Extended dijit. _ widget dijit. _ templated dijit. _ container dijit. _ contained class.
_ Basewidget dijit (_ basewidget. JS)
This is the class that all the widgets small tool classes should inherit. By extending the _ basewidget class, widgets can become deployable widgets of javascriptviewer widgetmanager.
_ Mapgraphicsmaintainer class (_ mapgraphicsmaintainer. JS)
This class is a small tool class for mixin3 to add images to a map. It defines common operations to add images and clear images on a map.
Widgetframe dijit (widgetframe. JS)
This UI class provides the UI class for all widgets of widgets in the container program in the container. This widgetframe is the dijit of a container and dynamically adjusts and minimizes its position. As a widget developer, it is not important to understand the detailed function of widgetframe. You only need to understand how the developed widget is embedded into the DOM of the webpage.