From wiki.ginstr.com
Jump to: navigation, search
m (formatting)
 
Line 11: Line 11:
  
 
==Event signatures==
 
==Event signatures==
;<code>gn:act_set{index}="action{n}"</code>
+
:;<code>gn:act_set{index}="action{n}"</code>
  
 
===Example===
 
===Example===
<code>gn:act_set="[gn:act_reloadAutoFilledWidgets]|[@+id/meterGroup_timestampRecordCreation],[gn:act_cleanData]|[meterGroup_lastMeterReading]"</code><br>
+
:<code>gn:act_set="[gn:act_reloadAutoFilledWidgets]|[@+id/meterGroup_timestampRecordCreation],[gn:act_cleanData]|[meterGroup_lastMeterReading]"</code><br>
<code>gn:act_set2="[gn:act_reloadAutoFilledWidgets]|[@+id/meterGroup_lastMeterReading]"</code>
+
:<code>gn:act_set2="[gn:act_reloadAutoFilledWidgets]|[@+id/meterGroup_lastMeterReading]"</code>
 
<hr>
 
<hr>

Latest revision as of 21:12, 12 July 2017

gn:act_set

Description
Event triggered by gn:act_trigger action.
Can be defined multiple times on the same widget by adding a number as a suffix e.g. gn:act_set2, gn:act_set3
Can be used on
all widgets

Event signatures

gn:act_set{index}="action{n}"

Example

gn:act_set="[gn:act_reloadAutoFilledWidgets]|[@+id/meterGroup_timestampRecordCreation],[gn:act_cleanData]|[meterGroup_lastMeterReading]"
gn:act_set2="[gn:act_reloadAutoFilledWidgets]|[@+id/meterGroup_lastMeterReading]"