Hide ()
Hide
Remove ()
If you need to remove elements from the DOM tree, use the ' Remove ' configuration option. Default El. ... ... Undo A
Event handler function: Ext.get (' myelement '). Un (' click ', MyHandler, Myscope)
setvisible
Properties: Disabled:true, disabled for initialization
EXT.GETCMP (' Updateb '). disable (); Disable button
EXT.GETCMP (' Deleteb '). Enable (); Restore available
2: Panel
EXT.GETCMP (' Rulepanel '). setvisible (True); Make a panel visible
EXT.GETCMP (' Rulepanel '). setvisible (false); Make panel invisible
EXT.GETCMP (' Rulepanel '). Collaps tutorial E (true); Make Rulepanel Shrink
EXT.GETCMP (' Rulepanel '). Expand (True); Make Rulepanel unfold
Ext's own SetValue function does not trigger the change, as well as the Blur event, the linkage of the multiple controls is a nightmare, such as the age of the birth of the linkage, when the birth date changes, in the Change event to call the age of the control of the SetValue changes in the age of the value, After the age change, automatically inquires some things and so on; because the SetValue function does not trigger the Change event, age changes do not query; This can be invoked to trigger a setvaluewithevent event; (This estimate that we use less, after all, not so many linkage)
New Ext.form.formpanel {
ID: ' Reportform ', items: [{
{id: ' 001 '},
{id: ' 002 '},
{id: ' 0 "},
{ID:" 004 "},
{id:" 005 "}
}
}),
//ext.getcmp (" Reportform "). GetForm () IsValid () validation invalid
I F (Istq = = 0) {
ext.getcmp ("003"). Hide ();
}
//ext.getcmp ("Reportform"). GetForm (). IsValid () validation is invalid
if (ISTQ = 0) {
ext.getcmp ("003"). Sitevisible (FALSE);
}
//ext.getcmp ("Reportform"). GetForm (). IsValid () Verify valid
if (ISTQ = 0) {
ext.getcmp ("Reportform"). Remove ("003");
}