You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This widget is useful to add a piece of HTML or JavaScript to a form. For example to embed a YouTube or Flash object. Furthermore it can be used to enhance styling by adding arbitrary HTML elements.
3
4
4
5
## Contributing
@@ -7,31 +8,43 @@ For more information on contributing to this repository visit [Contributing to a
7
8
8
9
## Typical usage scenario
9
10
10
-
* Display a predefined HTML document
11
-
* Load a Java Applet
12
-
* Manipulate the styling using JavaScript rather than theming.
11
+
- Display a predefined HTML document
12
+
- Load a Java Applet
13
+
- Manipulate the styling using JavaScript rather than theming.
13
14
14
15
## Features and limitations
15
16
16
-
* Embed raw HTML
17
-
* Embed raw JavaScript
18
-
* Load external HTML / JS file
17
+
- Embed raw HTML
18
+
- Embed raw JavaScript
19
+
- Load external HTML / JS file
19
20
20
21
## Dependencies
21
-
* Mendix 5.x environment
22
+
23
+
- Mendix 5.x environment
22
24
23
25
## Properties
24
26
25
-
* Content Type [ HTML, JavaScript, JavaScript with jQuery ] :
26
-
Select how the snippet should be rendered. The JavaScript with jQuery option will make sure that jQuery 1.11.3 is loaded and should be available on window.jQuery for the snippet.
27
-
* Contents :
28
-
The HTML or Javascript to embed.
29
-
* External File :
30
-
The path to the HTML or JavaScript file you want to add. The root is the theme folder. Will override the Contents section if used.
31
-
* On click microflow :
32
-
The microflow which should be executed on click. This can be used to, for example, show a page when the snippet is being clicked.
33
-
* Documentation :
34
-
Documentation of this widget. Should explain its purpose.
35
-
* Refresh on context change: Refresh when the context changes
36
-
* Refresh on context update: Refresh when the context updates (works only when context change is true)
37
-
* Enclose HTML with DIV: When adding HTML, the widget will wrap it with a DIV. If this is set to false, it will just replace the content of the widget. (For compatibility purposes this is set true on default)
27
+
-**Content Type [ HTML, JavaScript, JavaScript with jQuery ] :**
28
+
Select how the snippet should be rendered. The JavaScript with jQuery option will make sure that your code can leverage [jQuery v3.3.1](https://blog.jquery.com/2018/01/20/jquery-3-3-1-fixed-dependencies-in-release-tag/) for example:
29
+
30
+
```js
31
+
//e.g. this code snippet will set the color of all your paragraph tags on the page to red.
32
+
$('p').css('color', 'red')
33
+
// or
34
+
jQuery('p').css('color', 'red')
35
+
```
36
+
37
+
-**Contents :**
38
+
The HTML or Javascript to embed.
39
+
-**External File :**
40
+
The path to the HTML or JavaScript file you want to add. The root is the theme folder. Will override the Contents section if used.
41
+
-**On click microflow :**
42
+
The microflow which should be executed on click. This can be used to, for example, show a page when the snippet is being clicked.
43
+
-**Documentation :**
44
+
Documentation of this widget. Should explain its purpose.
45
+
-**Refresh on context change:**
46
+
Refresh when the context changes
47
+
-**Refresh on context update:**
48
+
Refresh when the context updates (works only when context change is true)
49
+
-**Enclose HTML with DIV:**
50
+
When adding HTML, the widget will wrap it with a DIV. If this is set to false, it will just replace the content of the widget. (For compatibility purposes this is set true on default)
0 commit comments