Contains a block of JavaScript code that is used to create the client-side component. If the associated component class specifies the name of a client class, then the element is optional; otherwise the element is required and it is an error if it is not provided.
If provided, then the code is wrapped in a no argument function that is stored in the global function registry and the value returned from the function is assumed to be the client-side instance of the component. Refer to the topic entitled Component types and classes for more information.
<cx:client-create>
return new MyItem(1,2);
</cx:client-create>
The previous codewill be turned into the following JavaScript:
V$F.a = function() {
return new MyItem(1,2);
}