ExtJs gridPanel Column 시간 포맷

2000 단어 gridPanel
var panel = new Ext.container.Viewport({
        items: {
            xtype: 'gridpanel',
            id: 'gridPanel',
            store: store,
            height: document.documentElement.clientHeight,
            columns: [
            { header: "Id", hidden: true, flex: 1, sortable: false, dataIndex: 'Id' },
            { header: " ", width: 250, sortable: false, dataIndex: 'Title' },
            { header: " ", width: 420, sortable: false, dataIndex: 'Contents' },
            { header: " ", width: 80, align: 'center', sortable: false, dataIndex: 'ClickCount' },
            { header: " ", width: 150, align: 'center', sortable: false, dataIndex: 'CreateTime',
                renderer: function (value) {
                    return eval("new " + value.split('/')[1]).Format("yyyy-MM-dd HH:mm:ss");
                }
            }
            ],
            loadMask: true,
            disableSelection: true,
            viewConfig: {
                stripeRows: true
            },
            tbar: ['->',
                { id: 'btn_add', text: ' ', icon: '../../../Images/extjs/add.png' },
                { id: 'btn_edit', text: ' ', icon: '../../../Images/extjs/pencil.png' },
                { id: 'btn_delete', text: ' ', icon: '../../../Images/extjs/delete.png' }
            ],
            dockedItems: [{
                xtype: 'pagingtoolbar',
                store: store,
                dock: 'bottom',
                displayMsg: '  {0} - {1} ,  {2}  ',
                displayInfo: true
            }]
        }
    });

좋은 웹페이지 즐겨찾기