Chapter 15. Zend_Dojo

Table of Contents

15.1. Introduction
15.2. Zend_Dojo_Data: dojo.data Envelopes
15.2.1. Zend_Dojo_Data Usage
15.2.2. Adding metadata to your containers
15.2.3. Advanced Use Cases
15.2.3.1. Available Methods
15.3. Dojo View Helpers
15.3.1. dojo() View Helper
15.3.1.1. Programmatic and Declarative Usage of Dojo
15.3.1.2. Themes
15.3.1.3. Using Layers (Custom Builds)
15.3.1.4. Methods Available
15.3.2. Dijit-Specific View Helpers
15.3.2.1. Dijit Layout Elements
15.3.2.2. Dijit Form Elements
15.4. Dojo Form Elements and Decorators
15.4.1. Dijit-Specific Form Decorators
15.4.1.1. DijitElement Decorator
15.4.1.2. DijitForm Decorator
15.4.1.3. DijitContainer-based Decorators
15.4.2. Dijit-Specific Form Elements
15.4.2.1. Button
15.4.2.2. CheckBox
15.4.2.3. ComboBox and FilteringSelect
15.4.2.4. CurrencyTextBox
15.4.2.5. DateTextBox
15.4.2.6. Editor
15.4.2.7. HorizontalSlider
15.4.2.8. NumberSpinner
15.4.2.9. NumberTextBox
15.4.2.10. PasswordTextBox
15.4.2.11. RadioButton
15.4.2.12. SimpleTextarea
15.4.2.13. Slider abstract element
15.4.2.14. SubmitButton
15.4.2.15. TextBox
15.4.2.16. Textarea
15.4.2.17. TimeTextBox
15.4.2.18. ValidationTextBox
15.4.2.19. VerticalSlider
15.4.3. Dojo Form Examples

15.1. Introduction

Zend Framework ships Dojo Toolkit to support out-of-the-box rich internet application development. Integration points with Dojo include:

  • JSON-RPC support

  • dojo.data compatibility

  • View helper to help setup the Dojo environment

  • Dijit-specific Zend_View helpers

  • Dijit-specific Zend_Form elements and decorators

The Dojo distribution itself may be found in the externals/dojo/ directory of the Zend Framework distribution. This is a source distribution, which includes Dojo's full javascript source, unit tests, and build tools. You can symlink this into your javascript directory, copy it, or use the build tool to create your own custom build to include in your project. Alternatively, you can use one of the Content Delivery Networks that offer Dojo (ZF supports both the official AOL CDN as well as the Google CDN).