EXTJS 4.2 资料 控件之Grid 列鼠标悬停提示

  columns: [

                    { header: '序号', xtype: 'rownumberer', align: 'left', width: 50 },

                    { header: '货位编号', dataIndex: 'StorePosCode', width: 100 },

                    {

                        header: '货位名称', dataIndex: 'StorePosName', width: 100, renderer: function (v, ctx, record) {

                            ctx.tdAttr = " data-qtip = '这里是TIP内容!'";

                            return v;

                        }

                    },

                    { header: '备注', dataIndex: 'Note', width: 300 },

                    {

                        header: '操作', align: 'left', width: 50, renderer:

                        function (v, nv, v1) {

                            var Update = "<img src='/Resources/Images/16x16/blue16_020.gif'></img>" + '<a href="#" onClick="FunctionActionUpdate()">修改</a>';

                            var Delete = "<img src='/Resources/Images/16x16/blue16_013.gif'></img>" + '<a href="#" onClick="FunctionActionDelete()">删除</a>';

                            return Update + ' ' + Delete;

                        }

                    }

        ],

 

你可能感兴趣的:(ExtJs)