|
|
|
|
- Events managed by default
- Additional events
Events associated with a Web Component control
Events managed by default WEBDEV manages the following events by default (order of appearance in the code editor): | | Event | Runtime condition |
---|
Action (Browser) | Code that can be directly called from the Web Component. Used to run an action via the HTML or JavaScript code of the control. | Action (Server) | Code that can be directly called from the Web Component. Used to run an action via the HTML or JavaScript code of the control. | Assigning the Value property (Browser) | Code used to assign a value to the Web Component control. | Get the Value property (Browser) | Code used to define the content of the Value property of the Web Component control. | Global declarations (Server) | Declaring the global variables linked to the control. | Initialization (Server) | Executed when the page is opened. | Load (onload) (Browser) | Run when loading the component. By default, this event contains the following line of code:
ExecuteProcess(<Control name>, trtValueAssignment) This line of code is used to run the "Assigning the Value property" event of the control. This allows you to give a value to the control for example. | Submit (onsubmit) (Browser) | Run: - when validating the page (submit).
- when running the server action of a control.
By default, this event contains the following line of code: ExecuteProcess(<Control name>, trtValueRetrieval) This line of code is used to run the "Retrieving the Value property" event of the control. This allows you to store the control value for example. |
Several additional events are displayed in the code editor: - CSS event: "Declaring the CSS styles": Code corresponding to the CSS code of the Web component. This code was typed when creating the control.
- JS event: "Initializing the Web component": JS code of the Web component. This code was typed when creating the control.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|