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 [2017-12-15 09:51] 46.140.51.3protogrid:trigger [2021-12-21 23:12] (current) dru
Line 1: Line 1:
 ====== Trigger ====== ====== Trigger ======
  
-A Trigger is the linking part between [[protogrid:button|button]] and a [[protogrid:script_library#client-scriptlibrary|Client-ScriptLibrary]]. The overview over all the triggers as well as the possibility to create a new trigger is located in the Card "Code", located in the "Design" menu tab. A Trigger has a name, used to link it later to a button, the Client-ScriptLibrary to use and the code you want to execute. The code can contain functions of the selected ScriptLibrary.+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". 
 + 
 +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 clickedThis 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