Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define([
- "dojo/_base/declare",
- "dijit/_TemplatedMixin",
- "dijit/_Widget",
- "dijit/_WidgetsInTemplateMixin",
- "dojo/text!./templates/RequirementForm.html",
- "dojox/form/Manager",
- "dijit/form/TextBox",
- "dijit/form/Textarea"
- ], function(Declare, TemplatedMixin, Widget, WidgetsInTemplateMixin, template){
- return Declare("widgets.forms.RequirementForm", [Widget, TemplatedMixin, WidgetsInTemplateMixin], {
- templateString:template,
- postCreate:function(){
- console.log("test 3");
- var obj = this.form.gatherFormValues();
- obj.name="test !";
- this.form.setFormValues(obj);
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment