pracro:devas_corner
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
pracro:devas_corner [2010/08/02 14:30] – deva | pracro:devas_corner [2010/08/10 10:49] – deva | ||
---|---|---|---|
Line 5: | Line 5: | ||
<?xml version=' | <?xml version=' | ||
<macro name=" | <macro name=" | ||
+ | |||
+ | < | ||
+ | <script src=" | ||
+ | < | ||
+ | -- inline code | ||
+ | if(regexp(' | ||
+ | then | ||
+ | return 'a string' | ||
+ | else | ||
+ | return ' | ||
+ | end | ||
+ | </ | ||
+ | </ | ||
+ | |||
< | < | ||
function foo() | function foo() | ||
-- this: current widget (widget that triggered the event) | -- this: current widget (widget that triggered the event) | ||
- | -- this.value: current value | ||
- | -- this.name: current name | ||
- | -- this.type: current type (eg. ' | ||
this.setChecked(true) | this.setChecked(true) | ||
Line 16: | Line 27: | ||
foo = getWidgetByName(' | foo = getWidgetByName(' | ||
- | if ( foo && foo.type == ' | + | if ( foo && foo.getType() |
then | then | ||
| | ||
Line 72: | Line 83: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | * '' | ||
+ | * '' | ||
Others are specific to certain widget types, such as (and many more): | Others are specific to certain widget types, such as (and many more): | ||
* '' | * '' |
pracro/devas_corner.txt · Last modified: 2011/01/14 14:49 by deva