✨ The widget has been rebuild from the ground up as pluggable widget! ✨
Insert custom JavaScript to your Mendix pages, taking object attributes as input parameters.
Insert JavaScript code which is executed when loading the widget.
Optionally add one or more attributes which can be used inside the JavaScript code.
Optionally for the attribute if it appears to be empty: fill an empty value.
Place the widget anywhere (relevant) on the Mendix page. Insert JavaScript code that you want to run there.
Add attribute(s) that you may need inside the code.
Link used attributes inside the JavaScript code by using the ${VariableName}
.
Whenever using the this
string inside the widget, it will be replaced by the widget unique classname.
- Install NPM package dependencies by using:
npm install
. If you use NPM v7.x.x, which can be checked by executingnpm -v
, execute:npm install --legacy-peer-deps
. - Run
npm start
to watch for code changes. On every change:- the widget will be bundled;
- the bundle will be included in a
dist
folder in the root directory of the project; - the bundle will be included in the
deployment
andwidgets
folder of the Mendix test project.