PDA

View Full Version : 1??????ExtJS???????



integra
3 Mar 2009, 11:44 PM
?????????????????????????????

1???????????????ExtJS?????????????????????

1.Ext.XTemplate?????????HTML??????
2.Ext.form.FormPanel???????????????????????readOnly?
???????????????????

1.??ExtJS???????????????????????????
2.??Form????????????????
??????????

1??????????????????????????????????

??????????????????????????????

???1.?????????????????


var tpl = new Ext.XTemplate(
"<table>",
"<tr><th>????</th><td>{customertId}</td></tr>",
"<tr><th>???</th><td>{customerName}</td></tr>",
"</table>"
);
var infoPanel = new Ext.Panel({frame: true});
var window = new Ext.Window({
title: '????',
modal: true,
width: 400,
items: [infoPanel]
});
window.show();
tpl.overwrite(infoPanel.body, data);
?????????????????????????

yuki
4 Mar 2009, 5:49 AM
1.Ext.XTemplate?????????HTML??????
2.Ext.form.FormPanel???????????????????????readOnly?


????????1?XTemplate????HTML???????????????Ext??????????CSS?????????Ext??????????????
????????????????????http://extjs.com/deploy/dev/examples/view/chooser.html
(http://extjs.com/deploy/dev/examples/view/chooser.html)???????XTemplate?????????

FormPanel?????????????????????????CSS??????????:-?

djodjo
4 Mar 2009, 9:09 PM
XTemplate?FormPanel??????
??readonly????????????????????FormPanel???
???????????Xtemplate?????????

?????????????????????XTemplte?????????
??????????

???????????????GridPanel?????????????????????????
????
???????
?????????
????????????;)

integra
5 Mar 2009, 8:56 PM
????????1?XTemplate????HTML???????????????Ext??????????CSS?????????Ext??????????????
FormPanel?????????????????????????CSS??????????:-?

XTemplate?FormPanel??????
??readonly????????????????????FormPanel???
???????????Xtemplate?????????

?????????????????????XTemplte?????????
??????????


????XTemplate????????
????????????????????????????
???????Ext????????CSS????????????????????????
??????????????????????



???????????????GridPanel?????????????????????????
????
???????
?????????
????????????;)

GridPanel??????????????????????????????????????
?????????????????????????????????????????????

froggugugugu
6 Mar 2009, 10:47 AM
?????????????????????
TextFiled?ReadOnly????????
??????????????????????????
??????????
????DB???ID?????????????????
??DB??????Form??????????????????????
TextField???????

?????????

?????????????????????
djodjo?????????????????????????????:D?
??????????

?????????????????????
//// ???????????////
//???????????
.system-common-form-readonly
{
color:black;
background-color:transparent;
border-style:none;
}
//// ???????????////


??????????????????????
??????
System.Common.Plugin.readOnly = function()
{
this.init=function( component )
{
if( component.readOnly )
{
component.addClass('system-common-form-readonly');
}
}
}

?????????????
???ID????????
??????????ReadOnly?true?????????????