Skip to content

Commit 38a83cb

Browse files
author
Osama Najjar
authored
Merge pull request #18 from mendix/UpgardeToJQuery3.3.1
Upgarde to jQuery3.3.1
2 parents 3cec54b + 87dca1f commit 38a83cb

File tree

11 files changed

+12043
-11815
lines changed

11 files changed

+12043
-11815
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ node_modules/
1717
*DS_Store*
1818
.vscode/
1919
*.bak
20+
21+
.prettierrc.json

README.md

+33-20
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# HTMLSnippet
2+
23
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.
34

45
## Contributing
@@ -7,31 +8,43 @@ For more information on contributing to this repository visit [Contributing to a
78

89
## Typical usage scenario
910

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.
1314

1415
## Features and limitations
1516

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
1920

2021
## Dependencies
21-
* Mendix 5.x environment
22+
23+
- Mendix 5.x environment
2224

2325
## Properties
2426

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

Comments
 (0)