|
|
|
|
|
- Default events
- Additional events
Web Component control events
The following events appear by default in the WEBDEV 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) | Executed when loading the component. By default, this event contains the following line of code:
ExécuteTraitement(<Nom du champ>, trtAffectationValeur) 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: ExécuteTraitement(<Nom du champ>, trtRécupérationValeur) 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: "CSS style declaration": Code corresponding to the CSS code of the Web component. This code was typed when creating the control.
- JS Event: "Web component initialization": JS code for the Web component. This code was typed when creating the control.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|