您的位置:首页 > Web前端 > BootStrap

bootstrap table单元格样式,行样式以及分页显示全部的设置

2016-07-21 11:05 716 查看
1、单元格样式:

cellStyle : function cellStyle(value, row, index) {
return {
css : {
"white-space" : "nowrap"
}
};
},
2、 行样式:
rowStyle:function rowStyle(row, index) {
return {
   css: {"white-space": "nowrap"}
 };
   },
3、显示正在加载,放在load前:
    $('#reportTable').bootstrapTable('showLoading');

隐藏正在加载,放在load后:
$('#reportTable').bootstrapTable('hideLoading');

4、分页显示全部,加上all用单引号
pageList : [ 15, 20, 50, 100, 200, 500,'ALL' ],
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息