User Tools

Site Tools


pracro:devas_corner

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
pracro:devas_corner [2010/08/10 11:13] devapracro:devas_corner [2010/08/10 11:14] deva
Line 52: Line 52:
 </scripts> </scripts>
 </code> </code>
 +
  
 ====The Widget Events==== ====The Widget Events====
Line 57: Line 58:
 Currently the script is referred by its name, and called whenever the widget changes its value.\\ Currently the script is referred by its name, and called whenever the widget changes its value.\\
 In the new system, the script attribute is removed and replaced by event attributes. The event attributes will themselves contain lua code and not simply a name. In order to call 'external' code, simply wrap it in a function and call it here.\\ In the new system, the script attribute is removed and replaced by event attributes. The event attributes will themselves contain lua code and not simply a name. In order to call 'external' code, simply wrap it in a function and call it here.\\
-The return values will no longer be used. Instead widget methods will be added to control the validation state of each widget, eg. setValid(true|false), setInvalid(), invalidate(), ...\\+The return values will no longer be used. Instead widget methods will be added to control the validation state of each widget, eg. ''setValid(true|false)''.\\
 Since it is no longer required (due to redundancy) the ''regexp'' attribute will be removed. Since it is no longer required (due to redundancy) the ''regexp'' attribute will be removed.
 +
  
 ====Event Handlers==== ====Event Handlers====
   * ''onChange'': triggered whenever the value of the widget is changed, either programmatically or by the user.   * ''onChange'': triggered whenever the value of the widget is changed, either programmatically or by the user.
-  * ''onUserChange'': triggered whenever the value of the widget is changed by the user. +  * more to come
-  * and many more+
  
  
pracro/devas_corner.txt · Last modified: 2011/01/14 14:49 by deva