setComponentMethod
Registers a method for a component instance
Syntax
setComponentMethod(String componentType, String id, String name, Function fn, Object scope) : void
Parameters
- componentType – The component's type. See Defining Component Types and IDs for possible values.
- id – The component's ID. This is the value specified as the ID attribute in the <%Render%> replacement tag.
- name – Name of the component method to register
- fn – Function to handle any calls to the registered method
- scope – Scope in which to call the registered function
Returns
void
See Also