sample skeleton application with dojo toolkit & arcgis js api v 4.30
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 lines
1.3 KiB

define([
"dojo/_base/declare",
"dijit/_WidgetBase",
"dijit/_TemplatedMixin",
"dijit/_WidgetsInTemplateMixin",
"dijit/registry",
"dojo/text!./test_mvc_widget_template.html",
"dojox/mvc/at",
"dijit/form/TextBox",
"dojox/mvc/Group",
"dojox/mvc/Repeat"
], function(declare, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, registry, template, at){
return declare("dojox.mvc.tests.test_templatedWidget.myMvcTemplated", [_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], {
// summary:
// A sample templated widget for dojox.mvc
// description:
// This template is used to show how to use exprchar to avoid instance of _TemplatedMixin error in dojo.mvc data binding.
// If the templateString contains ${xxx}, it will throw an template error, use #{xxx} with exprchar :"#" instead.
// See how it works in test_mvc_widget.html and test_mvc_widget_template.html
// ctrl: dojox.mvc.ModelRefController
// The controller that the form widgets in the template refer to.
ctrl: null,
templateString: template,
buildRendering: function(){
console.log("call myMvcTemplated buildRendering");
window.at = at;
this.inherited(arguments);
},
getParent: function(){
console.log("Call myMvcTemplated getParent");
return null;
}
});
});