替换jqgrid 分页小箭头样式

$("#grid-table").jqGrid({   

::::::::

   loadComplete : function() {
var table = this;
setTimeout(function(){
updatePagerIcons(table);
}, 0);
}

});

function updatePagerIcons(table) 

{
var replacement = {
'ui-icon-seek-first' : 'icon-double-angle-left bigger-140',
'ui-icon-seek-prev' : ' icon-angle-left bigger-140',
'ui-icon-seek-next' : 'icon-angle-right bigger-140',
'ui-icon-seek-end' : ' icon-double-angle-right bigger-140'
};
$('.ui-pg-table:not(.navtable) > tbody > tr > .ui-pg-button > .ui-icon').each(function() {
var icon = $(this);
var $class = $.trim(icon.attr('class').replace('ui-icon', ''));
if ($class in replacement)
icon.attr('class', 'ui-icon ' + replacement[$class]);
});
}

你可能感兴趣的:(jqgrid)