Class CQ.Ext.Updater.BasicRenderer
| Package: | CQ.Ext |
| Class: | Updater.BasicRenderer |
| Extends: | Object |
| Clientlib: | cq.widgets |
This class is a base class implementing a simple render method which updates an element using results from an Ajax request.
The BasicRenderer updates the element's innerHTML with the responseText. To perform a custom render (i.e. XML or JSON processing),
create an object with a conforming render method and pass it to setRenderer on the Updater.
Public Properties
This class has no public properties.
Public Methods
| |
render( CQ.Ext.Element el, Object xhr, Updater updateManager, Function callback ) : void
This method is called when an Ajax response is received, and an Element needs updating.
This method is called when an Ajax response is received, and an Element needs updating.
Parameters:
el : CQ.Ext.ElementThe element being rendered xhr : ObjectThe XMLHttpRequest object updateManager : UpdaterThe calling update manager callback : FunctionA callback that will need to be called if loadScripts is true on the Updater
Returns:
|
Updater.BasicRenderer |
Public Events
This class has no public events.