English 中文(简体)
动态地躲藏在ExtJS油田的管制
原标题:Dynamically hiding controls in an ExtJS Fieldset

是否有任何事件以检查箱检查/检查单活动为基础,掩盖外地的一些控制。

预先感谢


样本代码(外地语文)

listeners: {
          collapse: function () {
            //debugger;
            if (Ext.getDom( chkWarrantyCover ).checked == false) {
              Ext.getCmp("WarrantyFieldset").expand();
              Ext.getDom( chkWarrantyCover ).checked = false
              Ext.getDom( btnComEdit ).style.visibility = "hidden";
              Ext.getDom( btnEditPerson ).style.visibility = "hidden";
            }
            else
              Ext.getCmp("WarrantyFieldset").expand();
          }
        },
最佳回答

使用“CheckClick”活动进行实地考察:

Code:onCheckClick: function () {
    if (Ext.getDom( chkWarrantyCover ).checked == true) {
        Ext.getDom( btnComEdit ).style.visibility = "visible";
        Ext.getDom( btnEditPerson ).style.visibility = "visible";
        Ext.getDom( btnEditNotify ).style.visibility = "visible";
}
 else {
} 

关于

问题回答

在4号特约中,似乎并没有崩溃/崩溃/on。 小规模活动。 不清楚这在4年是怎么办的。

在现场发生的倒塌/大事面前,当检查箱国家发生变化时,它们会开火。

can you provide some sample codoe of what you are attempting to do? If not the listener is the most obvious answer. I would say do it on a select event and check for that on the checkbox id. Usually you can get the state with Ext.getCmp()





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签