stephanbruijnis / HTMLSnippet

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.

Home Page:https://appstore.home.mendix.com/link/app/56/Mendix/HTML/-JavaScript-Snippet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTMLSnippet

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.

https://appstore.home.mendix.com/link/app/56/Mendix/HTML/-JavaScript-Snippet

License:Apache License 2.0


Languages

Language:CSS 95.8%Language:JavaScript 2.9%Language:HTML 1.2%Language:Ruby 0.1%