From wiki.ginstr.com
Jump to: navigation, search
(Example)
m (formatting)
 
Line 10: Line 10:
 
===Change the text value===
 
===Change the text value===
  
;<code>[gn:act_changeText]|[target,source]</code>
+
:;<code>[gn:act_changeText]|[target,source]</code>
  
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
+
:{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 
|-
 
|-
 
! scope="col" | Parameter
 
! scope="col" | Parameter
 
! scope="col" | Description
 
! scope="col" | Description
 
|-
 
|-
| [[target]]
+
| <code>[[target]]</code>
 
| [[target]] where the text value will be changed
 
| [[target]] where the text value will be changed
 
* Valid [[target|targets]]:
 
* Valid [[target|targets]]:
** [[GnEditText]]
+
** <code>[[GnEditText]]</code>
** [[GnTextView]]
+
** <code>[[GnTextView]]</code>
** [[GnButton]]
+
** <code>[[GnButton]]</code>
 
|-
 
|-
| [[source]]
+
| <code>[[source]]</code>
 
| [[source]] from where the new value will be used
 
| [[source]] from where the new value will be used
 
* Valid [[source|sources]]:
 
* Valid [[source|sources]]:
Line 32: Line 32:
  
 
====Example====
 
====Example====
<code>@+id/btnShowList</code> - GnButton<br>
+
:<code>@+id/btnShowList</code> - <code>[[GnButton]]</code><br>
<code>@+id/locationResultText</code> - source<br><br>
+
:<code>@+id/locationResultText</code> - source<br>
<code>[gn:act_changeText]|[@+id/btnShowList,@+id/locationResultText]</code>
+
:; ⤷ <code>[gn:act_changeText]|[@+id/btnShowList,@+id/locationResultText]</code>
 
<hr>
 
<hr>

Latest revision as of 19:37, 12 July 2017

gn:act_changeText

Description
Action used to change the text value of widget
Action returns
void

Action signatures

Change the text value

[gn:act_changeText]|[target,source]
Parameter Description
target target where the text value will be changed
source source from where the new value will be used

Example

@+id/btnShowList - GnButton
@+id/locationResultText - source
[gn:act_changeText]|[@+id/btnShowList,@+id/locationResultText]