Created
May 26, 2016 15:57
-
-
Save tomtor/59504164bc5578a266e0c53bbb3ac7ca to your computer and use it in GitHub Desktop.
A simple Wrapper for Mendix Widgets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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