Paste the code directly.
Form code:
/**
* form * *
ext.define (' Nac.reportForm.view.FormWindow ', {
extend: ' Ext.window.Window ',
alias : ' Widget. Formwindow ',
ID: ' Formwindow ',
width:450,
autoheight:true,
layout: ' Fit ',
constrain:true,
modal:true,
closeaction: ' Destroy ',
title: ' Form ',
frame:true,
items: [{xtype: ' NewForm '}] ,
buttonalign: ' Center ',
buttons: [{
text: ' OK ',
ref: ' Newok '
},{
text: ' Reset ',
Ref: ' Newreset '
},{
text: ' Cancel ',
ref: ' Newcancle '
}]
};
Controller Controller Code:
var win=ext.create (' Nac.reportForm.view.FormWindow ');
Win.remove (0);
var btns=win.getdockeditems (' toolbar[dock= ' bottom '] ')
var items=win.getdockeditems (' toolbar[dock= ' Bottom "]") [0].items;
Items.items[0].ref= "Otherok" and/or
items.items[1].ref= "Otherreset" or "Reset
items.items[2].ref=" othercancle ";/Cancel
var view = ext.create (' Nac.reportForm.view.OtherForm ');
Win.add (view). Dolayout (); Re-layout
win.show ();
The other settings of the button, the same, directly to the ref to other properties, you can. Other headings, form sizes, and so on directly look at the API, needless to say. If there is no move, please contact me voluntarily. Personal qq532009913. After the operation of the effect diagram here is no screenshot.