effective_datatables 4.27.0 → 4.29.0

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
  SHA256:
3
- metadata.gz: 87b7b506996cfe6ae06c7f798073c5d33fb77b338dccb923d562c154cd5eb649
4
- data.tar.gz: a1c244dadeb7888540e1506dd6bd15603451759550115acbdaa05d4a9cb23bda
3
+ metadata.gz: 533211d85df05ceea724f478a28537a9be1b1b4a18eb2e6fb3bec843236eaacb
4
+ data.tar.gz: b521d06e9fb1cbb97d28eb693b6632d6891163b1eecf7c56472ede6989231f0c
5
5
  SHA512:
6
- metadata.gz: a69c9330ed0bcd594326a0b0634a0d502e0697299e8b673c38356e0d319090380728fd18f29470ab69d20f7aaf11e236636e1a3d616e226f48c3aa39bb12110f
7
- data.tar.gz: 5411671b623970f7fc9d5162cc8e72a97757734e57fde615f2a53ac6aa27460010e91a1283692cc53031de59692057041b46b970b1093a24a9b277aab9e10b95
6
+ metadata.gz: 709fd46784b74c1906c4dddb140c61453ddbf88057f3176ffb6872b26e2333977f48db5d28e2604bf8a96ba826749962e3d7ec4c6f0060fd927a7a8f23adedc4
7
+ data.tar.gz: '08d88ac7aa0ad5f93ca003c044aa6cdd8ae6f42ff10755aacad27a327b0334411f7c0e652b3fe58299666d34bc4d6ca04bf2eefa689653eea12336fcf8b9b5b4'
@@ -15,6 +15,13 @@ initializeDataTables = (target) ->
15
15
  ajax: { url: datatable.data('source'), type: 'POST' }
16
16
  autoWidth: false
17
17
  buttons: [
18
+ {
19
+ extend: 'copy',
20
+ exportOptions:
21
+ format:
22
+ header: (str) -> $("<div>#{str}</div>").children('span').first().text()
23
+ columns: buttons_export_columns
24
+ },
18
25
  {
19
26
  extend: 'csv',
20
27
  text: 'Snapshot',
@@ -31,14 +38,6 @@ initializeDataTables = (target) ->
31
38
  { extend: 'colvisGroup', text: 'Show default', hide: ':not(.colvis-default)', show: '.colvis-default' }
32
39
  ]
33
40
  }
34
- # {
35
- # extend: 'copy',
36
- # exportOptions:
37
- # format:
38
- # header: (str) -> $("<div>#{str}</div>").children('span').first().text()
39
- # columns: buttons_export_columns
40
- # },
41
-
42
41
  # {
43
42
  # extend: 'print',
44
43
  # footer: true,
@@ -1,4 +1,4 @@
1
- - id = (resource.try(:to_param) || resource.try(:id) || resource.object_id)
1
+ - id = (resource.try(:id) || resource.try(:to_param) || resource.object_id)
2
2
 
3
3
  .form-group.custom-control.custom-checkbox
4
4
  %input{value: 0, type: 'hidden'}
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.27.0'.freeze
2
+ VERSION = '4.29.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_datatables
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.27.0
4
+ version: 4.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-10 00:00:00.000000000 Z
11
+ date: 2024-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails