ソースを参照

Added onColumnSwitchAll docs

zhixin 3 年 前
コミット
6c74fbea3c
2 ファイル変更13 行追加0 行削除
  1. 1 0
      index.d.ts
  2. 12 0
      site/docs/api/events.md

+ 1 - 0
index.d.ts

@@ -67,6 +67,7 @@ interface BootstrapTableEvents{
     'all.bs.table': string;
     'uncheck-all.bs.table': string;
     'column-switch.bs.table': string;
+    'column-switch-all.bs.table': string;
     'check.bs.table': string;
     'search.bs.table': string;
     'load-success.bs.table': string;

+ 12 - 0
site/docs/api/events.md

@@ -139,6 +139,18 @@ $('#table').on('event-name.bs.table', function (e, arg1, arg2, ...) {
   * `field`: the field name corresponding to the switch column.
   * `checked`: the checked state of the column.
 
+## onColumnSwitchAll
+
+- **jQuery Event:** `column-switch-all.bs.table`
+
+- **Parameter:** `checked`
+
+- **Detail:**
+
+  It fires when toogle all columns. The parameters contain:
+
+  * `checked`: the checked state of the column.
+
 ## onDblClickCell
 
 - **jQuery Event:** `dbl-click-cell.bs.table`