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 +1 -1
- data/app/views/fancygrid/table.html.haml +1 -1
- data/fancygrid.gemspec +1 -1
- data/lib/fancygrid/grid.rb +14 -0
- data/spec/dummy/app/controllers/application_controller.rb +4 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
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
data/lib/fancygrid/grid.rb
CHANGED
@@ -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
|
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.
|
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: -
|
188
|
+
hash: -3773819786817539840
|
189
189
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
190
190
|
none: false
|
191
191
|
requirements:
|