The class APITemplate extends the jsMotif templating engine with a DOM element
attribute module. The attribute can be used in templates to name the Places API
components that can, for example, assist in rendering HTML elements and/or define the behavior
of the user interface after the elements have been rendered. In addition, APITemplate
allows you to specify initialization parameters for each of the Places API UI components
referenced by the templates.
getModules
(name)
: object
|
This method searches for the module named by the caller. |
hideSpinner
()
|
This method hides the spinner element. |
render
(jsonObject, [targetElem])
|
This method renders an HTML template, using the data and the target element supplied by the caller. |
renderObject
(node, jsonObject)
|
This method renders a single node in the template. |
showSpinner
()
|
This method shows the spinner element. |
The class APITemplate extends the jsMotif templating engine with a DOM element
attribute module. The attribute can be used in templates to name the Places API
components that can, for example, assist in rendering HTML elements and/or define the behavior
of the user interface after the elements have been rendered. In addition, APITemplate
allows you to specify initialization parameters for each of the Places API UI components
referenced by the templates.
params
moduleParams - {Object}, a hash map which specifies the parameters for the
modules that render template DOM nodes; for example, this is how you can enable all
rating modules specified within the template and set the perPage
parameter for every List object used within the template to 5:
moduleParams: {
'Rating': {
enabled: true
},
'List': {
perPage: 5
}
}
getModules
(name)
: object
name
render
(jsonObject, [targetElem])
jsonObject
targetElem]:
| jsMotif.Template#render |
renderObject
(node, jsonObject)
node
jsonObject
Copyright © 2011 Nokia. All rights reserved. Terms and Conditions