0
我有一個導軌應用程序與twitter引導,我有一個數據表,我只想知道,如果我應該通過Rails整合Table Sorter或應該使用jQuery庫嗎? 所以我想實現這樣的事情:http://tablesorter.com/docs/ 你有什麼建議?我會很感激,如果我能得到一些方法。Table Sorter - twitter bootstrapping
謝謝。
我有一個導軌應用程序與twitter引導,我有一個數據表,我只想知道,如果我應該通過Rails整合Table Sorter或應該使用jQuery庫嗎? 所以我想實現這樣的事情:http://tablesorter.com/docs/ 你有什麼建議?我會很感激,如果我能得到一些方法。Table Sorter - twitter bootstrapping
謝謝。
你可以在rails中包含jquery插件,就像通常包含任何js文件一樣。 就在jquery.tablesorter.min.js
從存檔複製到app/assets/javascripts
這行添加到application.js
//= require jquery.tablesorter.min
如果您正在使用此[Rails應用程序(https://github.com/themilkman/jquery-tablesorter-rails)它實際上是使用[這個版本的tablesorter](http://mottie.github.io/tablesorter/docs/)(不是原來的) – Mottie
@tokhi我的答案是否適合你? – mihai