Tablesorter,我可以将导出按钮放在thead中吗?

时间:2016-01-05 07:16:46

标签: tablesorter

我可以将导出按钮放在thead中吗?因为外面是工作,内部不是。感谢。

<table id="tableSorter">
<thead>
<tr>
  <th class="filter-false" data-sorter="false" colspan="3">Title
                <input type="button" class="ExportBtn" value="Export" /></th>
</tr>
<tr>
  <th>Col-1</th>
  <th>Col-2</th>
  <th>Col-3</th>
</tr>
</thead>
...

1 个答案:

答案 0 :(得分:0)

opened issue复制的答案。

使用Observable.interval(300, TimeUnit.MILLISECONDS) .flatMap(t -> Observable.fromCallable(() -> { Thread.sleep(1000); }).subscribeOn(Schedulers.io())) .map(...) .takeWhile(...) .subscribe(...) tr设置的班级名称,如下所示:

<table id="RelatedCars">
<thead>
<tr class="tablesorter-ignoreRow">
  <th colspan="3">Title
    <input type="button" class="ExportBtn" value="Export" />
  </th>
</tr>
<tr>
  <th>Col-1</th>
  <th>Col-2</th>
  <th>Col-3</th>
</tr>
</thead>