onBeforeRender

occurs immediately before the component has been rendered

boolean onBeforeRender(object data);
dataobjecta object with data that is used for rendering
booleanreturning false will block rendering; by default returns true

Example

$$("myCS").attachEvent("onBeforeRender", function(data){
    //... some code here ... 
});

Details

Returning false from the event handler will block further processing.

See also
Back to top