Skip to content

This widget adds custom JavaScript to your Mendix pages, taking object attributes as input parameters. When styling the frontend of your application you want to be in control. This widget enables you to execute custom JavaScript with multiple object attributes as input. Allowing you to take control again while using dynamically loaded content fr…

License

Notifications You must be signed in to change notification settings

mrgroen/mendix-JavaScriptSnippet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScriptSnippet

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.

Features

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.

Usage

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.

Issues, suggestions and feature requests

link to GitHub issues

Development and contribution

  1. Install NPM package dependencies by using: npm install. If you use NPM v7.x.x, which can be checked by executing npm -v, execute: npm install --legacy-peer-deps.
  2. 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 and widgets folder of the Mendix test project.

About

This widget adds custom JavaScript to your Mendix pages, taking object attributes as input parameters. When styling the frontend of your application you want to be in control. This widget enables you to execute custom JavaScript with multiple object attributes as input. Allowing you to take control again while using dynamically loaded content fr…

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5