浏览代码

Merge branch 'master' of github.com:wenzhixin/bootstrap-table

zhixin 11 年之前
父节点
当前提交
2093b18bbd
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/bootstrap-table.js

+ 2 - 1
src/bootstrap-table.js

@@ -85,6 +85,7 @@
         clickToSelect: false,
         singleSelect: false,
         toolbar: undefined,
+        checkBoxHeader: false,  //True will display check-all checkbox in header row vs. text
 
         rowStyle: function (row, index) {return {};},
 
@@ -249,7 +250,7 @@
             }
 
             if (column.checkbox) {
-                if (!that.options.singleSelect) {
+                if (!that.options.singleSelect && that.options.checkBoxHeader) {
                     text = '<input name="btSelectAll" type="checkbox" />';
                 }
                 that.header.stateField = column.field;