我正在使用ExtJS 4.2.1中的網格面板。我有一些列編輯器定義:'textfield'(可編輯的列),一些沒有編輯器(只讀列)。如何臨時突出顯示Ext JS網格面板(版本4.2.1)的可編輯列
我想要什麼?
我想臨時突出顯示帶有背景顏色的可編輯列,並將鼠標懸停在該特定列上。
我請求幫助。請指導。我已經白白耗費大量的時間在它和所有:(
問候, 賈普里特·辛格
任務 - 當鼠標放置在編輯的欄1和表2(具有編輯器配置選項),我想要的目標列將與一些色澤鮮豔的幾秒鐘暫時突出。
Ext.define('XX.view.account.Portfolios', {
extend : 'Ext.grid.Panel',
plugins : {
ptype : 'cellediting',
clicksToEdit : 1
},
columns : [{
text : 'Read Only 1',
flex : 1,
sortable : true,
dataIndex : 'ro1'
}, {
text : 'Read Only 2',
flex : 2,
sortable : true,
dataIndex : 'ro2'
}, {
text : 'MV',
flex : 1,
sortable : true,
dataIndex : 'mv'
}, {
text : 'Editable 1',
flex : 1,
sortable : true,
dataIndex : 'e1',
editor : 'textfield'
}, {
text : 'Editable 2',
flex : 1,
sortable : true,
dataIndex : 'e2',
editor : 'textfield'
}
陷阱鼠標懸停事件並使用.getEl()亮點()方法。 –