Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
protogrid:trigger [2018-03-02 10:19] druprotogrid:trigger [2021-12-21 23:12] (current) dru
Line 1: Line 1:
 ====== Trigger ====== ====== Trigger ======
  
-A Trigger is the linking part between [[protogrid:field|Fields]] ([[protogrid:button|Button]], [[protogrid:text_field|Text Field]], [[protogrid:number_field|Number Field]]) and a [[protogrid:script_library#client-scriptlibrary|Client Script Library]]. The overview over all triggers as well as the possibility to create a new trigger is located in the Overview Card "Code", located in the menu section "Design". A Trigger has a name which describes its action to the user, the Client Script Library to use and the code you want to execute when the Trigger is clicked. This code can contain functions of the selected Script Library.+A Trigger is the linking part between [[protogrid:field|Fields]] ([[protogrid:button|Button]], [[protogrid:text_field|Text Field]], [[protogrid:number_field|Number Field]]) and a [[protogrid:script_library#Client_ScriptLibrary|Client ScriptLibrary]]. The overview over all triggers as well as the possibility to create a new trigger is located in the Overview Card "Code", located in the menu section "Design".
  
-{{:protogrid:trigger_definition.png?direct&1000|}}+A Trigger has a name which describes its action to the user, the Client Script Library to use and the code you want to execute when the Trigger is clicked. This code can contain function calls to the selected Client ScriptLibrary. If you use an enclosing function for your Client ScriptLibrary as recommended, please note that this encolosing function has to emit your action handler functions in its return value and that you have to call these action handler functions by their enclosing function in the Trigger. 
 + 
 +{{:protogrid:new_trigger_definition.png?direct&1000|}}
Print/export