0
隊擴大組合框,我有一個問題,我想DONOT擴大對某些標誌組合框,想要顯示警報消息避免對「專注」或「的onclick」事件
。
沒有像EXTJS onClick這樣的事件,所以我嘗試了焦點事件,但仍然組合框正在擴大。
代碼
focus:function() {
if(this.store.baseParams.donotExpandFlag) {
alert("I should not expand this combo");
// What to do here and out side of IF block so that there is conditional expansion
}
}
我嘗試這樣做,因此未工作。我正在使用EXTJS 3.任何其他的替代品。 – user1913742
@ user1913742不,這是行得通的。我已經添加了一個工作示例 – sra
它不起作用。我甚至嘗試了JSFiddle的stanalone例子。 EXTJS版本是3.2,我使用的是xType組合,我在isExpanded函數中給出警報,並提醒它自己沒有被調用。 – user1913742