Differences

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

Link to this comparison view

Both sides previous revision Previous revision
protogrid:trigger [2021-12-21 22:47]
dru
protogrid: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 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 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 clicked. This code can contain function calls to the selected Client ScriptLibrary. If you use an enclosing function for your client script library as recommended, please note that this encolosing function has to emit your action handler functions as return value and that you have to call these action handler functions by their enclosing function in the Trigger.+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|}} {{:protogrid:new_trigger_definition.png?direct&1000|}}
Print/export