1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

JenkinsのjQueryプラグインでTableSorterをつかう

1
Last updated at Posted at 2015-02-09

準備

導入

(実際に使ったのはRich Text Publisherの中で呼んでるHTML内)

  • 出力するHTMLにjQueryを読み込む文は書かない。表示が崩れる。

  • tablesorterのjsファイルは読み込む。

  • $じゃなくてQをつかう。

こんな感じ(↓のコードは参考文献を改変)。

<script type="text/javascript">
   Q(document).ready(function() 
       { 
           Q("#sampleTable").tablesorter();
       } 
   ); 
</script>

参考文献

Tablesorterで HTMLの表をソート(並び替え)可能にする [ホームページ作成] All About

何がしたかったのか

RedmineのREST APIを使ってチケットをもってくる
スクリプトでCSV化
トラッカーごとまとめた表形式でJenkinsのジョブのページに表示
でも細かく分類するのは面倒だったし時間もなかったし

できる人はもっといい方法を思いつくんだろうけど今の自分にはこれが限界

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?