source: Dev/trunk/src/client/dojox/mvc/tests/test_templatedWidget/myMvcTemplated.js

Last change on this file was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 1.3 KB
Line 
1define([
2        "dojo/_base/declare",
3        "dijit/_WidgetBase",
4        "dijit/_TemplatedMixin",
5        "dijit/_WidgetsInTemplateMixin",
6        "dijit/registry",
7        "dojo/text!./test_mvc_widget_template.html",
8        "dojox/mvc/at",
9        "dijit/form/TextBox",
10        "dojox/mvc/Group",
11        "dojox/mvc/Repeat"
12], function(declare, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, registry, template, at){
13        return declare("dojox.mvc.tests.test_templatedWidget.myMvcTemplated", [_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], {
14                // summary:
15                //              A sample templated widget for dojox.mvc
16                // description:
17                //              This template is used to show how to use exprchar to avoid instance of _TemplatedMixin error in dojo.mvc data binding.
18                //              If the templateString contains ${xxx}, it will throw an template error, use #{xxx} with exprchar :"#" instead.
19                //              See how it works in test_mvc_widget.html and test_mvc_widget_template.html
20
21                // ctrl: dojox.mvc.ModelRefController
22                //              The controller that the form widgets in the template refer to.
23                ctrl: null,
24
25                templateString: template,
26
27                buildRendering: function(){
28                        console.log("call myMvcTemplated buildRendering");
29                        window.at = at;                 
30                        this.inherited(arguments);
31                },
32
33                getParent: function(){
34                        console.log("Call myMvcTemplated getParent");
35                        return null;
36                }
37        });
38});
Note: See TracBrowser for help on using the repository browser.