


About removing textfield methods from form in Ext: hide(), setVisible(false), remove()_javascript tips
May 16, 2016 pm 06:14 PMProblem: When using the hide() method and setvisible(false) method to remove the middle of the items (I have seen many examples where the tail forms are removed), the original form verification is invalid
Solution: Use the remove(id) method Remove the form and get a valid form
Reason: Unknown, I hope you can add it
Supplement: The following is a simplified version of the problem code I encountered. It has not been tested. It probably means that if you want to control the problem in the form, Display the form, using the remove() method is valid
new Ext. form.FormPanel({
id : 'ReportForm',items : [{
{id:"001"},
{id:"002"},
{id:"003"} ,
{id:"004"},
{id:"005"}
}]
});
//Ext.getCmp("ReportForm"). getForm().isValid() validation is invalid
if(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() is verified to be valid
if(isTQ == 0){
Ext.getCmp("ReportForm").remove(" 003");
}

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Replace String Characters in JavaScript

Custom Google Search API Setup Tutorial

8 Stunning jQuery Page Layout Plugins
