Attaches a function or event handler to an object or class.
Attaches a method to the object that contains this element. The
method must have a name.
The name attribute
allows the method to be invoked from JavaScript with this name.
For example, if a method is defined via:
then script code
can invoke obj.f(1, 2) to add two
numbers.
| Attributes | |||||
| Name | Usage | Type (Tag) | Type (JS) | Default | Category |
| args | Tag only | string | final | ||
|
The parameter names of this method. The value of this attribute is a comma-separated list of JavaScript identifiers. |
|||||
|
|
|||||
| event | Tag only | string | final | ||
|
The name of the event that this method is invoked in response to. |
|||||
|
|
|||||
| name | Tag only | token | final | ||
|
The name of a variable that will be set to this object when the
application is started. If this element is directly within a |
|||||
|
|
|||||
| reference | Tag only | reference | this | final | |
|
If this attribute is present, it is a JavaScript expression
that evaluates to an object. The code in this method executes
when this object sends the event named by the |
|||||
|
|
|||||
Copyright © 2002-2005 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.