From wiki.ginstr.com
Jump to: navigation, search
m (formatting)
 
Line 10: Line 10:
 
===Change widget state===
 
===Change widget state===
  
;<code>[gn:act_setViewState]|[keyword;target{n}]</code>
+
:;<code>[gn:act_setViewState]|[keyword;target{n}]</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
 
|-
 
|-
| keyword
+
| <code>keyword</code>
| keywords used to define widgets state
+
| defines state of target widget(s)
 
* Can be:
 
* Can be:
** <code>enabled</code> - enables defined widgets
+
** <code>enabled</code> - enables defined widget(s)
** <code>disabled</code> - disables defined widgets
+
** <code>disabled</code> - disables defined widget(s)
 
|-
 
|-
| [[target]]
+
| <code>[[target]]</code>
 
| [[target]] for which the state will be changed
 
| [[target]] for which the state will be changed
 
* Valid [[target|targets]]:
 
* Valid [[target|targets]]:
Line 31: Line 31:
  
 
====Example====
 
====Example====
<code>enabled</code> - keyword<br>
+
:<code>enabled</code> - keyword<br>
<code>+id/txtName,+id/txtEmail</code> - [[:Category:Widgets|widgets]]<br><br>
+
:<code>+id/txtName,+id/txtEmail</code> - [[:Category:Widgets|widgets]]<br>
<code>[gn:act_setViewState]|[enabled;+id/txtName,+id/txtEmail]</code>
+
:; ⤷ <code>[gn:act_setViewState]|[enabled;+id/txtName,+id/txtEmail]</code>
 
<hr>
 
<hr>

Latest revision as of 14:09, 12 July 2017

gn:act_setViewState

Description
Action used to change the state of any widget.
Action returns
void

Action signatures

Change widget state

[gn:act_setViewState]|[keyword;target{n}]
Parameter Description
keyword defines state of target widget(s)
  • Can be:
    • enabled - enables defined widget(s)
    • disabled - disables defined widget(s)
target target for which the state will be changed

Example

enabled - keyword
+id/txtName,+id/txtEmail - widgets
[gn:act_setViewState]|[enabled;+id/txtName,+id/txtEmail]