Skip to content

Instantly share code, notes, and snippets.

@tomtor
Created May 26, 2016 15:57
Show Gist options
  • Save tomtor/59504164bc5578a266e0c53bbb3ac7ca to your computer and use it in GitHub Desktop.
Save tomtor/59504164bc5578a266e0c53bbb3ac7ca to your computer and use it in GitHub Desktop.
A simple Wrapper for Mendix Widgets
<html>
<head>
<script src="../lib/jquery-1-11-3.js"></script>
</head>
<body>
<script>
function declare_f(w, a, p) {
p.domNode= $('body')[0];
p._contextObj= { set: function(k,v) { console.log(v); }};
// Add your method calls here:
p.constructor();
p.createMapDiv();
p.createOpenStreetMap();
}
var the_f;
function require(pack1, pack2, f) {
the_f= f;
}
</script>
<!-- The Widget to test/debug -->
<script src="MapView-new.js"></script>
<script>
var _WidgetBase, _TemplatedMixin, dom, dojoDom, domQuery, domProp, domGeom, domClass, domStyle, domConstruct, dojoArray, lang, text, widgetTemplate;
the_f(declare_f, _WidgetBase, _TemplatedMixin, dom, dojoDom, domQuery, domProp, domGeom, domClass, domStyle, domConstruct, dojoArray, lang, text, jQuery, widgetTemplate);
</script>
</body>
<html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment