Ext Hide (), setvisible (False), remove ()

Source: Internet
Author: User

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");
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.