ExtJs4中的新API

1. gridpanel中的columns换成了headers

var grid = new Ext.grid.GridPanel({
store: new Ext.data.Store({
autoDestroy: true,
reader: reader,
data: xg.dummyData
}),
colModel: new Ext.grid.ColumnModel({
defaults: {
width: 120,
sortable: true
},
headers: [
{id: 'company', header: 'Company', width: 200, sortable: true, dataIndex: 'company'},
{header: 'Price', renderer: Ext.util.Format.usMoney, dataIndex: 'price'},
{header: 'Change', dataIndex: 'change'},
{header: '% Change', dataIndex: 'pctChange'},
// instead of specifying renderer: Ext.util.Format.dateRenderer('m/d/Y') use xtype
{
header: 'Last Updated', width: 135, dataIndex: 'lastChange',
xtype: 'datecolumn', format: 'M d, Y'
}
],
}),
......

2. Add inverse iteration support to Ext.Array.each

3. Rename hlColor to repairHighlightColor for Tree DragSource

4. Rename MessageBoxWindow to MessageBox

5. Move all locales package from core to extjs

6. Add allowDrag config option on NodeInterface. Set it to false by default for root nodes

7. Change the names for the relayed events from TreeStore to TreePanel so that they don't collide with Panel's events

8. Put GridViewDDPlugin and TreeViewDDPlugin into proper namespaces (Ext.grid.plugin)

9. Renamed enableCacheBuster to disableCaching, added disableCachingParam config

10. We no longer use the global QuickTips singleton for form error tips. We now create a QuickTip singleton just for the field layout, with the proper baseCls for framing, and register it to respond to an 'errorqtip' property
一个全局单例的错误消息提示框

11. AbstractSummaryFeature, ChunkingFeature, GroupingFeature, RowSummaryFeature, RowBodyFeature, RowWrapFeature, and SummaryFeature moved to the Ext.grid.feature namespace
extjs4中grid中加了不少新功能啊

12. Rename locked from Header/Column to ddLock so that it doesnt conflict with the new locking functionality
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值