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

你可能感兴趣的:(ext)