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:
<view id="obj"> <method name="f" args="a, b"> return a+b; </method> </view>
then script code
can invoke obj.f(1, 2)
to add two
numbers.
Copyright © 2002-2007 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.