Differences

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

Link to this comparison view

Next revision
Previous revision
protogrid:trigger [2017-11-10 11:14] – created sblprotogrid:trigger [2021-12-21 23:12] (current) dru
Line 1: Line 1:
 ====== Trigger ====== ====== Trigger ======
  
-trigger is the linking part between [[protogrid:button|button]] and a [[protogrid:script_library#client-side script library|client-side script library]]. 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 script library to use and the code you want to execute. The code can contain functions of the selected script library.+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". 
 + 
 +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 ScriptLibraryIf 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