Class nnjl.mvc.AbstractDisplayer
Defined in: nnjl.mvc.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Field Attributes | Field Name and Description |
|---|---|
| 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.
|
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