-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #308 from doc4d/main
edits in R2
- Loading branch information
Showing
288 changed files
with
4,353 additions
and
10,909 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
--- | ||
id: WebFormClass | ||
title: WebForm | ||
--- | ||
|
||
<details><summary>History</summary> | ||
|
||
|Version|Changes| | ||
|---|---| | ||
|v20 R2|Added| | ||
|
||
</details> | ||
|
||
|
||
The `WebForm` class contains functions and properties allowing to handle your Qodly webform components. This class is detailed in the [Qodly documentation](https://developer.qodly.com/docs/language/WebFormClass). | ||
|
||
|
||
|
||
|
||
### Commands and functions | ||
|
||
|| | ||
|---| | ||
|[<!-- INCLUDE #WebFormClass.componentName.Syntax -->](#componentname) <!-- INCLUDE #WebFormClass.componentName.Summary -->| | ||
|[<!-- INCLUDE #WebFormClass.setError().Syntax -->](#seterror) <!-- INCLUDE #WebFormClass.setError().Summary -->| | ||
|[<!-- INCLUDE #WebFormClass.setMessage().Syntax -->](#setmessage) <!-- INCLUDE #WebFormClass.setMessage().Summary -->| | ||
|[<!-- INCLUDE #WebFormClass.setWarning().Syntax -->](#setwarning) <!-- INCLUDE #WebFormClass.setWarning().Summary -->| | ||
|[<!-- INCLUDE #_command_.Web Form.Syntax -->](#web-form) <!-- INCLUDE #_command_.Web Form.Summary -->| | ||
|[<!-- INCLUDE #_command_.Web Event.Syntax -->](#web-event) <!-- INCLUDE #_command_.Web Event.Summary -->| | ||
|
||
|
||
|
||
### *.componentName* | ||
|
||
<!-- REF #WebFormClass.componentName.Syntax -->***.componentName*** : [4D.WebFormItem](WebFormItemclass.md)<!-- END REF --> | ||
|
||
#### Description | ||
|
||
The components of webforms are <!-- REF #WebFormClass.componentName.Summary -->objects that are available directly as properties<!-- END REF --> of these webforms. | ||
|
||
For more information, please refer to the [`.componentName` description in the Qodly documentation](https://developer.qodly.com/docs/language/WebFormClass#componentname). | ||
|
||
|
||
|
||
### .setError() | ||
|
||
<!-- REF #WebFormClass.setError().Syntax --> | ||
**.setError**( *msg* : string)<!-- END REF --> | ||
|
||
<!-- REF #WebFormClass.setError().Params --> | ||
|Parameter|Type||Description| | ||
|---------|--- |:---:|------| | ||
|msg|string|->|Error message to display in the web form| | ||
<!-- END REF --> | ||
|
||
#### Description | ||
|
||
The `.setError()` function <!-- REF #WebFormClass.setError().Summary -->sends *msg* as an error message to the web form<!-- END REF -->. | ||
|
||
For more information, please refer to the [`.setError()` description in the Qodly documentation](https://developer.qodly.com/docs/language/WebFormClass#seterror). | ||
|
||
|
||
|
||
### .setMessage() | ||
|
||
<!-- REF #WebFormClass.setMessage().Syntax --> | ||
**.setMessage**( *msg* : string)<!-- END REF --> | ||
|
||
<!-- REF #WebFormClass.setMessage().Params --> | ||
|Parameter|Type||Description| | ||
|---------|--- |:---:|------| | ||
|msg|string|->|Information message to display in the web form| | ||
<!-- END REF --> | ||
|
||
#### Description | ||
|
||
The `.setMessage()` function <!-- REF #WebFormClass.setMessage().Summary -->sends *msg* as an information message to the web form<!-- END REF -->. | ||
|
||
For more information, please refer to the [`.setMessage()` description in the Qodly documentation](https://developer.qodly.com/docs/language/WebFormClass#setmessage). | ||
|
||
|
||
### .setWarning() | ||
|
||
<!-- REF #WebFormClass.setWarning().Syntax --> | ||
**.setWarning**( *msg* : string)<!-- END REF --> | ||
|
||
<!-- REF #WebFormClass.setWarning().Params --> | ||
|Parameter|Type||Description| | ||
|---------|--- |:---:|------| | ||
|msg|string|->|Warning message to display in the web form| | ||
<!-- END REF --> | ||
|
||
#### Description | ||
|
||
The `.setWarning()` function <!-- REF #WebFormClass.setWarning().Summary -->sends *msg* as a warning message to the web form<!-- END REF -->. | ||
|
||
For more information, please refer to the [`.setWarning()` description in the Qodly documentation](https://developer.qodly.com/docs/language/WebFormClass#setwarning). | ||
|
||
|
||
## Web Form | ||
|
||
<!-- REF #_command_.Web Form.Syntax -->**Web Form** : 4D.WebForm<!-- END REF --> | ||
|
||
<!-- REF #_command_.Web Form.Params --> | ||
|Parameter|Type||Description| | ||
|---------|--- |:---:|------| | ||
|Result|4D.WebForm|<-|New `WebForm` proxy object | ||
<!-- END REF --> | ||
|
||
#### Description | ||
|
||
The `Web Form` command <!-- REF #_command_.webForm.Summary --> returns a `4D.WebForm` proxy object that allows you to interact with the web form<!-- END REF -->. | ||
|
||
For more information, please refer to the [`webForm` command description in the Qodly documentation](https://developer.qodly.com/docs/language/WebFormClass#webform). | ||
|
||
|
||
## Web Event | ||
|
||
<!-- REF #_command_.Web Event.Syntax -->**Web Event** : object<!-- END REF --> | ||
|
||
<!-- REF #_command_.Web Event.Params --> | ||
|Parameter|Type||Description| | ||
|---------|--- |:---:|------| | ||
|Result|object|<-| object | ||
<!-- END REF --> | ||
|
||
#### Description | ||
|
||
The `Web Event` command <!-- REF #_command_.Web Event.Summary -->returns an object with information on a triggered event linked to a webform component<!-- END REF -->. | ||
|
||
For more information, please refer to the [`webEvent` command description in the Qodly documentation](https://developer.qodly.com/docs/language/WebFormClass#webevent). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
--- | ||
id: WebFormItemClass | ||
title: WebFormItem | ||
--- | ||
|
||
<details><summary>History</summary> | ||
|
||
|Version|Changes| | ||
|---|---| | ||
|v20 R2|Added| | ||
|
||
</details> | ||
|
||
|
||
`4D.WebFormItem` objects are properties of the [`4D.WebForm`](WebFormItemClass.md) object returned by the [`Web Form`](WebFormClass.md#web-form) command. | ||
|
||
The `WebFormItem` class is detailed in the [Qodly documentation](https://developer.qodly.com/docs/language/WebFormItemClass). | ||
|
||
|
||
### WebFormItem object | ||
|
||
|| | ||
|---| | ||
|[<!-- INCLUDE #WebFormItemClass.addCSSClass().Syntax -->](#addclass) <!-- INCLUDE #WebFormItemClass.addCSSClass().Summary -->| | ||
|[<!-- INCLUDE #WebFormItemClass.hide().Syntax -->](#hide) <!-- INCLUDE #WebFormItemClass.hide().Summary -->| | ||
|[<!-- INCLUDE #WebFormItemClass.removeCSSClass().Syntax -->](#removeclass) <!-- INCLUDE #WebFormItemClass.removeCSSClass().Summary -->| | ||
|[<!-- INCLUDE #WebFormItemClass.show().Syntax -->](#show) <!-- INCLUDE #WebFormItemClass.show().Summary -->| | ||
|
||
|
||
### .hide() | ||
|
||
<!-- REF #WebFormItemClass.hide().Syntax --> | ||
**.hide**()<!-- END REF --> | ||
|
||
<!-- REF #WebFormItemClass.hide().Params --> | ||
|Parameter|Type||Description| | ||
|---------|--- |:---:|------| | ||
||||Does not require any parameters| | ||
<!-- END REF --> | ||
|
||
|
||
#### Description | ||
|
||
The `.hide()` function <!-- REF #WebFormItemClass.hide().Summary -->hides the component<!-- END REF -->. | ||
|
||
|
||
For more information, please refer to the [`.hide()` description in the Qodly documentation](https://developer.qodly.com/docs/language/WebFormItemClass#hide). | ||
|
||
|
||
### .show() | ||
|
||
<!-- REF #WebFormItemClass.show().Syntax --> | ||
**.show**()<!-- END REF --> | ||
|
||
|
||
<!-- REF #WebFormItemClass.show().Params --> | ||
|Parameter|Type||Description| | ||
|---------|--- |:---:|------| | ||
||||Does not require any parameters| | ||
<!-- END REF --> | ||
|
||
|
||
#### Description | ||
|
||
The `.show()` function <!-- REF #WebFormItemClass.show().Summary -->makes the component visible<!-- END REF -->. | ||
|
||
For more information, please refer to the [`.show()` description in the Qodly documentation](https://developer.qodly.com/docs/language/WebFormItemClass#show). | ||
|
||
|
||
### .addCSSClass() | ||
|
||
<!-- REF #WebFormItemClass.addCSSClass().Syntax --> | ||
**.addCSSClass**(*className* : string)<!-- END REF --> | ||
|
||
<!-- REF #WebFormItemClass.addCSSClass().Params --> | ||
|Parameter|Type||Description| | ||
|---------|--- |:---:|------| | ||
|className|string|->|Name of the CSS class to add to the component| | ||
<!-- END REF --> | ||
|
||
#### Description | ||
|
||
The `.addCSSClass` function <!-- REF #WebFormItemClass.addCSSClass().Summary -->adds the class specified in *className* to the component<!-- END REF -->. | ||
|
||
For more information, please refer to the [`.addCSSClass` description in the Qodly documentation](https://developer.qodly.com/docs/language/WebFormItemClass#addcssclass). | ||
|
||
|
||
### .removeCSSClass() | ||
|
||
|
||
<!-- REF #WebFormItemClass.removeCSSClass().Syntax --> | ||
**.removeCSSClass**(*className*: string)<!-- END REF --> | ||
|
||
<!-- REF #WebFormItemClass.removeCSSClass().Params --> | ||
|Parameter|Type||Description| | ||
|---------|--- |:---:|------| | ||
|className|string|->|Name of the CSS class to remove from the component| | ||
<!-- END REF --> | ||
|
||
#### Description | ||
|
||
The `.removeCSSClass()` function <!-- REF #WebFormItemClass.removeCSSClass().Summary -->removes the class specified in *className* from the component<!-- END REF -->. | ||
|
||
For more information, please refer to the [`.removeCSSClass()` description in the Qodly documentation](https://developer.qodly.com/docs/language/WebFormItemClass#removecssclass). | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.