PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Interacting with a Web Component control
  • Prodecures associated with the Web Component control
  • Processes for assigning and retrieving the Value property
  • Handling the Web Component control by programming
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Handling a Web Component control by programming
Overview
A Web Component control can be handled by programming.
This help page explains how to handle a Web Component control by programming.
Interacting with a Web Component control

Prodecures associated with the Web Component control

Several methods can be used to interact with a Web Component control.
For example, you have the ability to create Server and/or Browser procedures linked to the Web Component control ("Details" tab of control description).
These procedures can be used to modify the data found in the Web Component control by assigning a value coming from the WEBDEV page for example.
The Web Component control can directly call these procedures from the HTML code of Web component. The HTML code editor proposes the different available procedures via the completion on the actions.
For example, the following HTML code is used to call the "Action" code of the component during the click on the "Order" button:
<button onclick="CMP_Test()" class="w3-aqua">
Order
</button>
The HTML code editor proposes the different available procedures and actions:
You also have the ability to call the procedures of the Web Component control from the WEBDEV controls directly.

Processes for assigning and retrieving the Value property

The processes for assigning and retrieving the Value properly are mainly used to initialize the value of the Web component during page load and to retrieve its value.
Handling the Web Component control by programming
The following properties are specific to the Web Component control:
Versions 22 and later
CodeCSS
New in version 22
CodeCSS
CodeCSS
..CodeCSS is used to read and modify the CSS code associated with a Web Composant control.
Versions 22 and later
CodeJS
New in version 22
CodeJS
CodeJS
..CodeJS is used to read and modify the CSS code associated with a Web Composant control.
Versions 22 and later
CodeHTML
New in version 22
CodeHTML
CodeHTML
..CodeHTML is used to read and modify the HTML code associated with a Web Component control.
To find out the entire list of WLanguage properties that can be used with a Web Component control, see Properties associated with the Web Component control.
Minimum required version
  • Version 22
Comments
Click [Add] to post a comment