1 | define([ |
---|
2 | "dijit/_Widget", |
---|
3 | "dijit/_AttachMixin", |
---|
4 | "dijit/_WidgetsInTemplateMixin", |
---|
5 | "./manager/_Mixin", |
---|
6 | "./manager/_NodeMixin", |
---|
7 | "./manager/_FormMixin", |
---|
8 | "./manager/_ValueMixin", |
---|
9 | "./manager/_EnableMixin", |
---|
10 | "./manager/_DisplayMixin", |
---|
11 | "./manager/_ClassMixin", |
---|
12 | "dojo/_base/declare" |
---|
13 | ], function(_Widget, _AttachMixin, _WidgetsInTemplateMixin, _Mixin, _NodeMixin, _FormMixin, _ValueMixin, _EnableMixin, _DisplayMixin, _ClassMixin, declare){ |
---|
14 | |
---|
15 | return declare("dojox.form.Manager", [ _Widget, _WidgetsInTemplateMixin, _AttachMixin, _Mixin, _NodeMixin, _FormMixin, _ValueMixin, _EnableMixin, _DisplayMixin, _ClassMixin ], { |
---|
16 | // summary: |
---|
17 | // The widget to orchestrate dynamic forms. |
---|
18 | // description: |
---|
19 | // This widget hosts dojox.form.manager mixins. |
---|
20 | // See _Mixin for more info. |
---|
21 | |
---|
22 | // Set _AttachMixin.searchContainerNode to true for back-compat for widgets |
---|
23 | // that have data-dojo-attach-point's and events inside this.containerNode. |
---|
24 | // Remove for 2.0. |
---|
25 | searchContainerNode: true, |
---|
26 | |
---|
27 | buildRendering: function(){ |
---|
28 | if(!this.containerNode){ |
---|
29 | // all widgets with descendants must set containerNode |
---|
30 | this.containerNode = this.srcNodeRef; |
---|
31 | } |
---|
32 | this.inherited(arguments); |
---|
33 | } |
---|
34 | }); |
---|
35 | }); |
---|