effective_datatables 4.27.0 → 4.28.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: dd87ac5079fa518fdc3c9950d5f998a49a391be1acb4c1bda843b63396457c49
4
+ data.tar.gz: 7be54cba3747f6f5959169ab2948f7d4661d8be2aeee27f67ab9c3555d1679ef
5
5
  SHA512:
6
- metadata.gz: a69c9330ed0bcd594326a0b0634a0d502e0697299e8b673c38356e0d319090380728fd18f29470ab69d20f7aaf11e236636e1a3d616e226f48c3aa39bb12110f
7
- data.tar.gz: 5411671b623970f7fc9d5162cc8e72a97757734e57fde615f2a53ac6aa27460010e91a1283692cc53031de59692057041b46b970b1093a24a9b277aab9e10b95
6
+ metadata.gz: 229acdb52df7be9a8fc670eaabbb5886da426f2b152002d8b775bcbb269c38ad289d208e9efe6f366cb36d2f9191fd8d8c4e97a69f580d6b2eece63d55f1461b
7
+ data.tar.gz: 373054322bf303ce7f6b4ef15aa5de4a034db4a19c219734e645bb430f69f8b5e810b7b6219080e946dc9b13a2e4534a4b42a15f3f2797254764f9b16793d008
@@ -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,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.27.0'.freeze
2
+ VERSION = '4.28.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.28.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-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails