In this example define() is used to define an AMD module and is consumed by the widget require()
Sunday, April 29, 2018
Mendix Widgets AMD Modules
In this example define() is used to define an AMD module and is consumed by the widget require()
Wednesday, April 25, 2018
Tuesday, April 24, 2018
Minimal Mendix Widget
Herewith probably the most basic Mendix widget you can write
Does absolutely nothing, but showcases the various parts of a Dojo Dijit widget as used in Mendix. In later posts well take a look at how to extend this.
define( [ "dojo/_base/declare", "mxui/widget/_WidgetBase", ], function( declare, _WidgetBase, ){ "use strict"; return declare( "mxempty.widget.main", [ _WidgetBase, ], { constructor: function () { }, postCreate: function () { } } ); } ); require(["mxempty/widget/main"]);
Does absolutely nothing, but showcases the various parts of a Dojo Dijit widget as used in Mendix. In later posts well take a look at how to extend this.
Subscribe to:
Posts (Atom)