Skip to content

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.

License

Notifications You must be signed in to change notification settings

jam-it-nl/JavaScriptSnippet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Changes in this fork

  • Changed parameter contents to type microflow and needsEntityContext set to true

JavaScriptSnippet

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.

Contributing

For more information on contributing to this repository visit Contributing to a GitHub repository!

Typical usage scenario

  • Display a predefined HTML document
  • Load a Java Applet
  • Manipulate the styling using JavaScript rather than theming.

Features and limitations

  • Embed raw HTML
  • Embed raw JavaScript
  • Load external HTML / JS file

Dependencies

  • Mendix 5.x environment

Properties

  • Content Type [ HTML, JavaScript, JavaScript with jQuery ] : 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.
  • Contents : The HTML or Javascript to embed.
  • External File : 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.
  • On click microflow : The microflow which should be executed on click. This can be used to, for example, show a page when the snippet is being clicked.
  • Documentation : Documentation of this widget. Should explain its purpose.

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 96.0%
  • JavaScript 2.7%
  • HTML 1.2%
  • Ruby 0.1%