fancygrid 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.2
1
+ 2.0.3
@@ -1,5 +1,5 @@
1
1
  .fg-datawrapper{ :class => "fg-#{fancygrid.name}"}
2
- %table.fg-datacontainer
2
+ %table.fg-datacontainer{ :class => fancygrid.table_class, :id => fancygrid.table_id }
3
3
  %tr.fg-header
4
4
  - fancygrid.visible_columns.each do |column|
5
5
  %th{ :class => column.tag_class + (column.searchable ? " fg-orderable" : ""), :"fg-identifier" => column.identifier, :"fg-sort-order" => column.sort_order }
data/fancygrid.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "fancygrid"
8
- s.version = "2.0.2"
8
+ s.version = "2.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Alexander Graefenstein"]
@@ -297,5 +297,19 @@ module Fancygrid#:nodoc:
297
297
  @td_id
298
298
  end
299
299
  end
300
+
301
+ def table_class=value
302
+ @table_class = value
303
+ end
304
+ def table_class
305
+ @table_class
306
+ end
307
+
308
+ def table_id=value
309
+ @table_id = value
310
+ end
311
+ def table_id
312
+ @table_id
313
+ end
300
314
  end
301
315
  end
@@ -32,9 +32,13 @@ class ApplicationController < ActionController::Base
32
32
  "td-#{record.id}"
33
33
  end
34
34
 
35
+ #grid.table_class = "table-class"
36
+ #grid.table_id = "table-id"
37
+
35
38
  grid.find do |q|
36
39
  q.includes :tickets
37
40
  end
41
+
38
42
  end
39
43
 
40
44
  respond_to do |format|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fancygrid
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -185,7 +185,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
185
  version: '0'
186
186
  segments:
187
187
  - 0
188
- hash: -979915640466591579
188
+ hash: -3773819786817539840
189
189
  required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  none: false
191
191
  requirements: