addInputExModules
void
addInputExModules
(
yuiLoader
,
inputExPath
)
Add inputEx modules to a YUI loader
- Parameters:
-
yuiLoader <YUILoader>
YUI Loader instance -
inputExPath <String>
(optional) inputExPath
func
void
func
(
)
Use a rendering function
options = {visuType: 'func', func: function(data) { ...code here...} }
renderVisu
static
HTMLElement || String
renderVisu
(
visuOptions
,
data
,
parentEl
)
Render 'data' using a visualization function described by 'visuOptions'
- Parameters:
-
visuOptions <Object>
The visu parameters object with: visuType: 'myType', ...args... -
data <Object>
The input data to send to the template -
parentEl <HTMLElement || String>
optional Set the result as content of parentEl
- Returns:
HTMLElement || String
- Either the inserted HTMLElement or the String set to parentEl.innerHTML
trimpath
void
trimpath
(
)
Use the trimpath-template engine
see http://code.google.com/p/trimpath/wiki/JavaScriptTemplates for syntax
options = {visuType: 'trimpath', template: "String template"}