浏览代码

Fix for Issue #45

Make undesirable behavior opt-in.
Janet Moery 11 年之前
父节点
当前提交
35f831b96c
共有 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 {};},
 
@@ -246,7 +247,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;