README.md in paginated_table-0.0.1 vs README.md in paginated_table-0.0.2
- old
+ new
@@ -1,8 +1,8 @@
# PaginatedTable
-[![Build Status](https://secure.travis-ci.org/dball/paginated_table.png)](http://travis-ci.org/dball/paginated\_table)
+[![Build Status](https://secure.travis-ci.org/dball/paginated_table.png)](http://travis-ci.org/dball/paginated_table)
PaginatedTable is a Rails plugin that makes rendering paginated, sorted
HTML tables dead simple.
## Requirements
@@ -11,14 +11,14 @@
* will_paginate 3.0
* jquery-rails
## Installation
-Add `paginated\_table` to your `Gemfile` and `bundle install`.
+Add `paginated_table` to your `Gemfile` and `bundle install`.
-Add the `paginated\_table` javascript to your application's javascript
-requires after `jquery` and `jquery\_ujs`:
+Add the `paginated_table` javascript to your application's javascript
+requires after `jquery` and `jquery_ujs`:
//= require jquery
//= require jquery_ujs
//= require paginated_table
@@ -121,12 +121,38 @@
</div>
</div>
</div>
</div>
+### Global Configuration
+
+In an initializer, e.g. `config/initializers/paginated_table.rb`:
+
+ PaginatedTable.configure do |config|
+ config.rows_per_page = 20
+ end
+
## TODO
* AJAX links should be optional
* AJAX busy indicator
* AJAX error indicator
+
+* Partial should infer ivar by template name?
+
+* Escaped HTML leaks in the will_paginate links
+
+* Explicitly enable the :rows option
+ * It really belongs in the view helper, but it's simpler to implement
+ in the controller helper
+
+* Global configuration
+ * AJAX links
+
+* :per_page request param should be allowed to be ignored or restricted
+ to a configurable maximum
+
+* scope th header elements to column
+
+* allow column cells to render as th elements