tabulatr2 0.9.24 → 0.9.25

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a72f0789980c0098fd9594b85ce09abb2e67283
4
- data.tar.gz: b75b64f51f675909452f1b60103fd782a38e5437
3
+ metadata.gz: 93a7f7f2e647df8335e8b04e01c0c0487e842855
4
+ data.tar.gz: 3c34950af40251e68d3a48d49046665b7c02b6bc
5
5
  SHA512:
6
- metadata.gz: 201998ddae1023364a745d6690cdc071013c7b807a3bd14962dd28261fc4ec7546e87228f26c30bf59b19f32eac280e3be62034401a90572f28167f0a3e32958
7
- data.tar.gz: c500600edfb9dcf650855165e27e61b041c640472e5773e5bce4a8b58b9db0c58e2e4aec64f53904dd66c6776810bad49e6ed364e447e74950aa35b62595f86f
6
+ metadata.gz: 865f79bc948ee5d7cd703d39a22c9d137d9348ee87936bd4cdf0d9c0cabefc2a5adbaa0ea3a9e48edf2e93491656f1024680ec5e8c4e2a8d8e4a2f7f29e912d8
7
+ data.tar.gz: 25d25401d6f5724424ece2c397ffe713b0d456dae7b5e2f21ccc51812bc71732208d6398f2c28a821e65c38fd287c6293203a4e00d47fc0f7b54ea581670d9cd
@@ -27,7 +27,7 @@
27
27
  .tabulatr-filter-col data-table-id=table_id
28
28
  = render '/tabulatr/tabulatr_filter_dialog', opts
29
29
  .tabulatr-table-col.col-xs-12 data-table-id=table_id
30
- .tabulatr-table-controls-wrapper.row data-table-id=table_id
30
+ .tabulatr-table-controls-wrapper.row.tabulatr-table-controls-wrapper-top data-table-id=table_id
31
31
  .tabulatr-filter-menu-wrapper.col-xs-3.col-sm-1 data-table-id=table_id
32
32
  = render '/tabulatr/tabulatr_filter_menu', opts
33
33
 
@@ -48,10 +48,12 @@
48
48
  = render '/tabulatr/tabulatr_info_string', opts
49
49
  = render '/tabulatr/tabulatr_actual_table', opts
50
50
 
51
- - if table_options[:counter_position].in?([:bottom, :both])
52
- .tabulatr-info-string-wrapper data-table-id=table_id
53
- = render '/tabulatr/tabulatr_info_string', opts
51
+ .tabulatr-table-controls-wrapper.row.tabulatr-table-controls-wrapper-bottom data-table-id=table_id
54
52
 
55
- - if table_options[:pagination_position].in?([:bottom, :both])
56
- .tabulatr-paginator-wrapper.col-xs-12 data-table-id=table_id
57
- = render '/tabulatr/tabulatr_paginator', opts
53
+ - if table_options[:counter_position].in?([:bottom, :both])
54
+ .tabulatr-info-string-wrapper.col-xs-12 data-table-id=table_id
55
+ = render '/tabulatr/tabulatr_info_string', opts
56
+
57
+ - if table_options[:pagination_position].in?([:bottom, :both])
58
+ .tabulatr-paginator-wrapper.col-xs-12 data-table-id=table_id
59
+ = render '/tabulatr/tabulatr_paginator', opts
@@ -24,19 +24,19 @@
24
24
  class Tabulatr::Renderer
25
25
 
26
26
  def initialize(klass, view,
27
- filter: true, # false for no filter row at all
28
- search: true, # show fuzzy search field
29
- paginate: Tabulatr.paginate, # true to show paginator
30
- pagesize: 20, # default pagesize
31
- sortable: true, # true to allow sorting (can be specified for every sortable column)
32
- batch_actions: false, # :name => value hash of batch action stuff
33
- footer_content: false, # if given, add a <%= content_for <footer_content> %> before the </table>
34
- path: '#', # where to send the AJAX-requests to
35
- order_by: nil, # default order
36
- html_class: '',
37
- pagination_position: :top,
38
- counter_position: :top,
39
- persistent: true)
27
+ filter: Tabulatr.filter,
28
+ search: Tabulatr.search,
29
+ paginate: Tabulatr.paginate,
30
+ pagesize: Tabulatr.pagesize,
31
+ sortable: Tabulatr.sortable,
32
+ batch_actions: Tabulatr.batch_actions,
33
+ footer_content: Tabulatr.footer_content,
34
+ path: Tabulatr.path,
35
+ order_by: Tabulatr.order_by,
36
+ html_class: Tabulatr.html_class,
37
+ pagination_position: Tabulatr.pagination_position,
38
+ counter_position: Tabulatr.counter_position,
39
+ persistent: Tabulatr.persistent)
40
40
  @klass = klass
41
41
  @view = view
42
42
  @table_options = {
@@ -22,5 +22,5 @@
22
22
  #++
23
23
 
24
24
  module Tabulatr
25
- VERSION = "0.9.24"
25
+ VERSION = "0.9.25"
26
26
  end
data/lib/tabulatr.rb CHANGED
@@ -26,11 +26,27 @@ module Tabulatr
26
26
  yield self
27
27
  end
28
28
 
29
- mattr_accessor :spinner
30
- mattr_accessor :paginate
29
+ mattr_accessor :spinner, :paginate, :filter, :search, :paginate,
30
+ :pagesize, :sortable, :batch_actions, :footer_content, :path,
31
+ :order_by, :html_class, :pagination_position, :counter_position,
32
+ :persistent
31
33
 
34
+ self.filter = true # false for no filter row at all
35
+ self.search = true # show fuzzy search field
36
+ self.paginate = true # true to show paginator
37
+ self.pagesize = 20 # default pagesize
38
+ self.sortable = true # true to allow sorting (can be specified for every sortable column)
39
+ self.batch_actions = false # :name => value hash of batch action stuff
40
+ self.footer_content = false # if given, add a <%= content_for <footer_content> %> before the </table>
41
+ self.path = '#' # where to send the AJAX-requests to
42
+ self.order_by = nil # default order
43
+ self.html_class = ''
44
+ self.pagination_position = :top
45
+ self.counter_position = :top
46
+ self.persistent = true
32
47
  self.spinner = :standard
33
- self.paginate = false
48
+
49
+
34
50
  end
35
51
 
36
52
  require 'tabulatr/engine'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tabulatr2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.24
4
+ version: 0.9.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Horn
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-11-03 00:00:00.000000000 Z
13
+ date: 2015-11-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails