|
|
Components
Mojax as a development platform was designed to be extensible. From creating plugins, which are custom extensions to the Mojax platform, to components, which are packages of code and style information, Mojax offers many options for extensibility and code reuse.
|
What follows is a step by step introduction to creating and using Mojax components. From the basics of the relationship between prototypes and custom tags, to comprehensive examples of creating and using components, all the information you need to get started working with and reusing Mojax code can be found here.
Here you will find information on the basics of prototypes and custom tags which will provide a foundation for more advanced topics to follow.
This section will demonstrate several examples of working with prototypes. In addition, an example of a popup menu will be introduced, which will be carried through all the remaining sections to demonstrate concepts from creating prototypes to packaging of components.
Following the lead of the previous section, here we will convert the popup menu example shown previously into a prototype. This ground work will provide a comprehensive working example for the next section, where we will demonstrate how to package and use components.
Up to this point we've covered several examples of working with prototypes. This section will walk through the process of migrating the examples to Mojax components and show several examples on how to use the resulting code from with a moblet.
Our finale is to demonstrate how to create a Mojax component entirely in script. No prototypes, no style sheets, simply a Mojax script object. You will appreciate the flexibility and inherently extensible nature of Mojax upon completely this final section on component development.