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 +4 -4
- data/app/views/tabulatr/_tabulatr_table.html.slim +9 -7
- data/lib/tabulatr/renderer/renderer.rb +13 -13
- data/lib/tabulatr/version.rb +1 -1
- data/lib/tabulatr.rb +19 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93a7f7f2e647df8335e8b04e01c0c0487e842855
|
4
|
+
data.tar.gz: 3c34950af40251e68d3a48d49046665b7c02b6bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
-
|
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[:
|
56
|
-
|
57
|
-
|
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:
|
28
|
-
search:
|
29
|
-
paginate:
|
30
|
-
pagesize:
|
31
|
-
sortable:
|
32
|
-
batch_actions:
|
33
|
-
footer_content:
|
34
|
-
path:
|
35
|
-
order_by:
|
36
|
-
html_class:
|
37
|
-
pagination_position:
|
38
|
-
counter_position:
|
39
|
-
persistent:
|
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 = {
|
data/lib/tabulatr/version.rb
CHANGED
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
|
-
|
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
|
-
|
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.
|
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-
|
13
|
+
date: 2015-11-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|