0
我有這樣的代碼,你可以測試here:如何在財產更改後立即啓動財產變更事件?
Ext.application({
name: 'Fiddle',
launch: function() {
Ext.create('Ext.grid.property.Grid', {
id: "PROPERTIES",
renderTo: Ext.getBody(),
autoHeight: true,
width: 300,
viewConfig: {
forceFit: true,
scrollOffset: 2 // the grid will never have scrollbars
},
listeners: {
propertychange: function(source, recordId, value, oldValue) {
alert("new Value=" + value);
}
},
source: {
"title": "My Object",
"color": Ext.Date.parse('10/15/2006', 'm/d/Y'),
"Available": false,
"Version": 0.01,
"Description": "A test object"
}
});
}
});
當我的屬性更改事件改變假值爲true在這個例子中,當我點擊關閉真/假盒僅火災。我希望事件(或其他事件)在更改值後立即觸發。我怎樣才能做到這一點?