Using Zen Mojo Plugins
Page Manager and Helper Plugins for ChocolateChip-UI
The ChocolateChip-UI page manager and helper plugins provide support for the ChocolateChip-UI framework. Because the ChocolateChip-UI framework was designed for mobile devices, these plugins are especially suitable for use on mobile devices, but could also be used on desktop computers. For detailed information about ChocolateChip-UI, see http://chocolatechip-ui.com/
Adding ChocolateChip-UI to the Page Class
Adding Required ChocolateChip-UI Files
ChocolateChip-UI also requires the jQuery 2.0.3 library. The following file must be in /csp/broker
Registering the ChocolateChip-UI Plugins
A page class that uses the ChocolateChip-UI page manager can include only one documentView
in its pageContents
The ChocolateChip-UI page manager is required when you use ChocolateChip-UI helper plugin, and can also be used with most other helper plugins. The Default
helper plugin is required only by the ChocolateChip-UI $list
Other Options and Requirements
layout object requires the $loop
layout object provided by the Default
helper plugin. This layout object will display the string "($loop)"
in place of the expected output if the Default helper is not included.
Deprecated ChocolateChip-UI Plugin Classes
These older classes are not being updated and will be removed in a later release.
Using ChocolateChip-UI in a Template Class
Required Layout Objects
A ChocolateChip-UI layout graph must always contain at least one $article
layout object with at least one $section
layout object in it. This requirement is imposed by the ChocolateChip-UI framework.
ChocolateChip-UI Layout Objects
Custom ChocolateChip-UI Layout Object Methods
The following method is available within all appropriate layout objects:
Re-renders the HTML for the layout object.
ChocolateChip-UI Helper Plugin Methods
Direct Access to ChocolateChip-UI Libraries
ChocolateChip-UI plugins have no special event handling requirements.
In addition to the ChocolateChip-UI page manager and helper plugins, the sample application also uses the HTML5
© 1997-2019 InterSystems Corporation, Cambridge, MA