Class Index | File Index

Classes


Class nnjl.mvc.AbstractDisplayer


Defined in: nnjl.mvc.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
 
 
Method Summary
Method Attributes Method Name and Description
 
listen(element, event, action, selector, workdata)
When the displayer is loaded it will listen events created with this operation.
 
render(workdata)
This operatiron render the EJS template with data of workdata and replace the content of the screen
 
renderOn(workdata, elementId)
This operatiron render the EJS template with data of workdata and replace the content of the element passed by param
 
run(workdata)
This operation is executed before rendering.
Class Detail
nnjl.mvc.AbstractDisplayer()
Field Detail
displayerEvents

manager

screen
Method Detail
listen(element, event, action, selector, workdata)
When the displayer is loaded it will listen events created with this operation. Event could observe an element, or a container that could be filtered with the css selector.
Parameters:
{String|Element} element
that will observer the event
{String} event
Event name/type
{String} action
Action Name
{String} selector Optional
Css selector applied to the event
{WorkData} workdata Optional
if workdata is not null action will use the same workdata, is not a new one will be created.

render(workdata)
This operatiron render the EJS template with data of workdata and replace the content of the screen
Parameters:
{WorkData} workdata

renderOn(workdata, elementId)
This operatiron render the EJS template with data of workdata and replace the content of the element passed by param
Parameters:
{WorkData} workdata
{string} elementId
element wehre the displayer will be rendered

run(workdata)
This operation is executed before rendering. You could overwrite it and load some data into de displayer
Parameters:
{WorkData} workdata

Documentation generated by JsDoc Toolkit 2.3.2 on Wed Sep 29 2010 11:46:26 GMT+0200 (CEST)