andlio

Untitled

May 4th, 2012
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. define([
  2.     "dojo/_base/declare",
  3.     "dijit/_TemplatedMixin",
  4.     "dijit/_Widget",
  5.     "dijit/_WidgetsInTemplateMixin",
  6.     "dojo/text!./templates/RequirementForm.html",
  7.     "dojox/form/Manager",
  8.     "dijit/form/TextBox",
  9.     "dijit/form/Textarea"
  10. ], function(Declare, TemplatedMixin, Widget, WidgetsInTemplateMixin, template){
  11.    
  12.     return Declare("widgets.forms.RequirementForm", [Widget, TemplatedMixin, WidgetsInTemplateMixin], {
  13.         templateString:template,
  14.         postCreate:function(){
  15.             this.inherited(arguments);
  16.             console.log("test 5");
  17.             var obj = this.reqForm.gatherFormValues();
  18.             obj.name="test !";
  19.             this.reqForm.setFormValues(obj);
  20.         }
  21.     });
  22. });
Advertisement
Add Comment
Please, Sign In to add comment