Git Product home page Git Product logo

genza999 / htmlsnippet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mendix/htmlsnippet

0.0 1.0 0.0 5.33 MB

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

License: Apache License 2.0

JavaScript 2.62% Ruby 0.05% HTML 1.22% CSS 96.10%

htmlsnippet's Introduction

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.
  • Refresh on context change: Refresh when the context changes
  • Refresh on context update: Refresh when the context updates (works only when context change is true)
  • 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)

htmlsnippet's People

Contributors

andries-smit avatar gredens avatar jeltemx avatar mcpoowl avatar melvingrootenboers avatar mxpvdk avatar roelandsalij avatar rvthof avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.