Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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