cx:client-start

Purpose

Contains an optional block of JavaScript code which is used to start the client-side component. The code is invoked during the starting phase of the page construction process after all the references have been resolved and therefore can be used to perform any post linking initialization. It overrides the method specified in the start-method attribute of the cx:client-class element.

If provided, then the code is wrapped in a function which is stored in the global function registry. The function has a single parameter which is the reference to the client-side component instance and the name of the parameter is 'c'.

Contained by

Example

<cx:client-start>
  c.start(1,2);
</cx:client-start>

The previous codewill be turned into the following JavaScript:

V$F.a = function(c) {
  c.start(1,2);
}

Related topics