Ext JS开发积累

阅读更多

1、Grid列上添加tooltip

  Ext.QuickTips.init();

  var cm = new Ext.grid.ColumnModel([
   sm,//第一列为复选框
   {header:'工单编号',width:10,dataIndex:'flowNo',renderer:hidenull},
   {header:'主题',width:10,dataIndex:'flowTitle',renderer:addLink},
   
   {header:'工单类型',width:8,dataIndex:'flowName',renderer:hidenull},
   {header:'工单分类',width:8,dataIndex:'flowType',renderer:hidenull},
   {header:'派单时间',width:10,dataIndex:'sendTime',renderer:hidenull},
   {header:'结束时间',width:10,dataIndex:'endTime',renderer:hidenull},
   {header:'发起人',width:10,dataIndex:'sendMan',renderer:hidenull},
   {header:'目前环节',width:15,dataIndex:'activityinstnames',renderer:function(val){
    if(val==null || val=='')
     return " ";
    else
        return ''+val+'';
       }},
   {header:'处理人(组)',width:15,dataIndex:'participantnames',renderer:function(val){
    if(val==null || val=='')
     return " ";
    else
        return ''+val+'';
       }},
   {header:'图形',width:5,dataIndex:'detail',renderer:seedetail}
  ]);

你可能感兴趣的:(Ext JS开发积累)