rich_table_component 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,6 @@
9
9
  - rtc_partial = rtc_controller_name.singularize if rtc_partial.nil?
10
10
  - toggle_view = false if toggle_view.nil?
11
11
  - add_form_remote = true if add_form_remote.nil?
12
- - rtc_empty_data_message = sanitize "Data #{t(rtc_controller_name)} kosong" if rtc_empty_data_message.nil?
13
12
  - rtc_button_new = true if rtc_button_new.nil?
14
13
  - rtc_multiple_selection ||= nil
15
14
  - advanced_search_attributes ||= nil
@@ -18,6 +17,7 @@
18
17
  - export_attributes ||= nil
19
18
  - recapitulation_matrix ||= nil
20
19
  - table_title ||= nil
20
+ - rtc_empty_data_message = sanitize "Data #{table_title.presence || t(rtc_controller_name)} kosong" if rtc_empty_data_message.nil?
21
21
  - row_number = false if row_number.nil?
22
22
  - multiple_selection = false if multiple_selection.nil?
23
23
  - multiple_selection_actions ||= nil
@@ -4,12 +4,12 @@
4
4
  - rtc_footer = true if rtc_footer.nil?
5
5
  - rtc_partial = rtc_controller_name.singularize if rtc_partial.nil?
6
6
  - toggle_view = false if toggle_view.nil?
7
- - rtc_empty_data_message = sanitize "Data #{t(rtc_controller_name)} kosong" if rtc_empty_data_message.nil?
8
7
  - search_action ||= nil
9
8
  - search_key ||= 'q'
10
9
  - advanced_search_attributes ||= nil
11
10
  - columns_width = columns_width.presence || []
12
11
  - table_title ||= nil
12
+ - rtc_empty_data_message = sanitize "Data #{table_title.presence || t(rtc_controller_name)} kosong" if rtc_empty_data_message.nil?
13
13
 
14
14
  .component_content
15
15
  - if rtc_header.present?
@@ -32,6 +32,7 @@
32
32
  rtc_partial: rtc_partial,
33
33
  rtc_empty_data_message: rtc_empty_data_message,
34
34
  row_number: row_number,
35
+ table_title: table_title,
35
36
  multiple_selection: multiple_selection,
36
37
  columns_width: columns_width
37
38
 
@@ -1,7 +1,8 @@
1
1
  - rtc_controller_name ||= controller_name
2
2
  - rtc_column_header = true if rtc_column_header.nil?
3
3
  - rtc_partial = rtc_controller_name.singularize if rtc_partial.nil?
4
- - rtc_empty_data_message = sanitize "Data #{t(rtc_controller_name)} kosong" if rtc_empty_data_message.nil?
4
+ - table_title ||= nil
5
+ - rtc_empty_data_message = sanitize "Data #{table_title.presence || t(rtc_controller_name)} kosong" if rtc_empty_data_message.nil?
5
6
  - columns_width = columns_width.presence || []
6
7
 
7
8
  .rtc_content
@@ -1,3 +1,3 @@
1
1
  module RichTableComponent
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rich_table_component
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: