Do you mean you want to set values for your parameters when you open the widget? If so then I used code like this in the onOpen function of mine.
var DT0 = document.getElementById("dijit_form_TextBox_0");
var DT1 = document.getElementById("dijit_form_TextBox_1");
var DT2 = document.getElementById("dijit_form_TextBox_2");
var DT3 = document.getElementById("dijit_form_TextBox_3");
var DT5 = document.getElementById("dijit_form_TextBox_5");
var DT6= document.getElementById("dijit_form_TextBox_6");
var DT7 = document.getElementById("dijit_form_TextBox_7");
var DT8 = document.getElementById("dijit_form_TextBox_8");
DT0.value = this.map.extent.xmin
DT1.value = this.map.extent.ymin;
DT2.value = this.map.extent.xmax;
DT3.value = this.map.extent.ymax;
if (DT5){
DT5.value = this.map.extent.xmin;
}
if (DT6){
DT6.value = this.map.extent.ymin;
}
if (DT7){
DT7.value = this.map.extent.xmax;
}
if (DT8){
DT8.value = this.map.extent.ymax;
}
You can change how the fields order/display in the widget edit mode. If you want to change the size of widget and it is opening in a panel you can use something along these lines.
var panel = this.getPanel();
//panel.position.width = 400;
panel.position.height= 600;
//panel.position.left=1100;
//panel.position.top=0;
panel.setPosition(panel.position);
panel.panelManager.normalizePanel(panel);