...
This method is called after the rendering has been done (after renderContent()). When this is executed, the widget is guaranteed to have injected itself into the DOM, and thus normal techniques of manipulating DOM elements apply (jQuery can be used for example).
The default implementation of afterRender
appends the custom template to the widget and also installs any custom events (see customEvents).
Expand | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
...
Expand | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
customTemplate()
widget.customTemplate(/* no arguments */)
Renders the custom template. The default behavior of this method is to call the customWidgetTemplate function with the return value of getCustomTemplateParams method.
customWidgetTemplate()
widget.customWidgetTemplate(params)
...