From wiki.ginstr.com
Jump to: navigation, search
m (formatting)
 
(13 intermediate revisions by one other user not shown)
Line 3: Line 3:
 
[[Category:Events]]
 
[[Category:Events]]
  
<code>[[gn:act_setClick]]</code> event is executed by clicking on a widget
+
;Description
 +
: Event executed by clicking on a widget
  
 
;Can be used on  
 
;Can be used on  
* [[:Category:Widgets|widgets]]
+
: all [[:Category:Widgets|widgets]]
** <code>[[GnCaptureSignature]]</code>
 
** <code>[[GnEditText]]</code>
 
** <code>[[GnEmail]]</code>
 
** <code>[[GnLogin]]</code>
 
** <code>[[GnLogSender]]</code>
 
** <code>[[GnMediaAction]]</code>
 
** <code>[[GnMediaGallery]]</code>
 
** <code>[[GnNfcEmulator]]</code>
 
** <code>[[GnPhoneAction]]</code>
 
** <code>[[GnPhoneNumber]]</code>
 
** <code>[[GnPreferencesButton]]</code>
 
** <code>[[GnQrEmulator]]</code>
 
** <code>[[GnRadioButton]]</code>
 
** <code>[[GnResetPassword]]</code>
 
** <code>[[GnDateTimeDialog]]</code>
 
** <code>[[GnEmailDialog]]</code>
 
** <code>[[GnPhoneNumberDialog]]</code>
 
  
;Trigger for event
+
==Event signature==
: click on a widget
+
:;<code>gn:act_setClick="action{n}"</code>
  
;Additional required attributes on bound widget: none
+
===Example===
==Event signature==
+
:<code>gn:act_setClick="[gn:act_trigger]|[@+id/addRecipientOfProtocolValidation,gn:act_set]"</code>
;<code>gn:act_setClick=[action]|[actValue],[action2]|[actValue],….”</code>
+
<hr>

Latest revision as of 22:12, 12 July 2017

gn:act_setClick

Description
Event executed by clicking on a widget
Can be used on
all widgets

Event signature

gn:act_setClick="action{n}"

Example

gn:act_setClick="[gn:act_trigger]|[@+id/addRecipientOfProtocolValidation,gn:act_set]"