easyui tips使用实例

来源:互联网 发布:mac版百度云分享 编辑:程序博客网 时间:2024/05/29 02:46
{
field:'name',
title:'用户名',
sortable:true,
formatter:function(value,row){  
var content = '<li title="' + value + '" class="tip">' + value + '</li>';
       return content;  
       }

},{
field:'updatetime',
title:'更新时间',
sortable:true,
align:'center',
hidden:true,
formatter:function(value) {
return HYQMS.FN.unixtostr(value);
}
}]],

onDblClickRow:function(index,row){//运用双击事件实现对一行的编辑  
    var id = HYQMS.HyqZpeople.selectedData.id;
    HYQMS.EUI.newWindow({
title:'详细信息',
height:'600',
width:'800',
href:'<%=path%>/console/zpeople/winloadpeople.do',
queryParams:{
peopleId:id,
rowIndex:index
},
});
},
onLoadSuccess:function(data){  
               $(".tip").tooltip({  
                   onShow: function(){  
                       $(this).tooltip('tip').css({   
                           width:'100',          
                           boxShadow: '1px 1px 3px #292929'                          
                       });  
                   }  
               });  
},
toolbar:[
{
text:'刷新',
iconcls: 'icon-reload',
handler: function(){
$('#HyqZpeopledatagrid').datagrid('load');
}
}
<c:forEach items="${menubuttons}" var="list" varStatus="stat">  
<c:if test="${stat.first}">,'-',</c:if> ${list.mbattribute }<c:if test="${!stat.last}">,</c:if> 
</c:forEach>
],


0 0