Grid Columns 기본 틀

2018. 4. 26. 11:17프로그래밍/ExtJS

columns: {

 defaults :{

menuDisabled: true,

                          sortable: false

},

items:[

{ xtype:'actioncolumn',width:40,items:[{ 

tooltip:'다운로드',

cls:'videoclip',

glyph: 'e930@icomoon',

    dataIndex: 'fileurl',                     

handler: function(view, rowIndex, colIndex, item, e, record, row) {

                    this.fireEvent('onProgramDownload', view, rowIndex, colIndex, item, e, record, row);

                }

}]},

        { text: '파일', dataIndex: 'fileurl',hidden:true },

        { text: '프로그램명', dataIndex: 'programnm', flex: 1 },

        { text: '프로그램설명', dataIndex: 'programinfo', flex: 1 },

        { text: '업데이트날짜', dataIndex: 'updatedate', renderer: Ext.util.Format.dateRenderer('Y-m-d') }

    ]

}


Grid Columns 기본 틀