Book Image

Mastering ArcGIS Server Development with JavaScript

By : Raymond Kenneth Doman
Book Image

Mastering ArcGIS Server Development with JavaScript

By: Raymond Kenneth Doman

Overview of this book

Table of Contents (18 chapters)
Mastering ArcGIS Server Development with JavaScript
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Dojo layout


Dojo uses its own framework to control the layout of the application. Dojo's layouts can be found in the dijit/layout modules. These modules can be used to implement full page applications with all their features implemented, by using the Dojo framework.

Dijits created with dijit/layout modules can be encoded directly in the HTML. These are encoded using the data-dojo-type attribute. Properties for these, including styling and behavior, are encoded in the data-dojo-props attribute of the element. These dijits can be loaded from HTML by using the dojo/parser module to parse the HTML.

Tip

Applications where the dijit/layout elements are loaded through HTML often break when dojo/parser doesn't have access to a layout module. Make sure that all the modules for the layout elements used in the HTML have been loaded in the require() or define() statement that calls the parse() method of the dojo/parser module. Check for misspellings, either in the module loaders, or in the HTML data-dojo...