ソースを参照

Update faq.html

zhixin 11 年 前
コミット
e93ea3d51f
1 ファイル変更2 行追加3 行削除
  1. 2 3
      docs/faq.html

+ 2 - 3
docs/faq.html

@@ -113,9 +113,8 @@
         <hr>
         
         <h2>How to better merge cells?</h2>
-        <div><p>For merged cells, when you do refresh, next page or switch columns to show, the merge cells will be unmerged. We can listen the events(on load success, on column switch) to solve this problem, code example:</p>
-<pre><code class="lang-js">$table.on(<span class="hljs-string">'load-success.bs.table column-switch.bs.table'</span>, <span class="hljs-keyword">function</span> () {
-    // pagination events will come soon
+        <div><p>For merged cells, when you do refresh, next page or switch columns to show, the merge cells will be unmerged. We can listen the events(on load success, on column switch, on page change and on search) to solve this problem, code example:</p>
+<pre><code class="lang-js">$table.on(<span class="hljs-string">'load-success.bs.table column-switch.bs.table page-change.bs.table search.bs.table'</span>, <span class="hljs-keyword">function</span> () {
     $table.bootstrapTable(<span class="hljs-string">'mergeCells'</span>, {<span class="hljs-keyword">...</span>});
 });
 </code></pre>