Sha256: f97cfe2512300304da42d1ad3987e0d302233dec14098e93f9812ea75609088e

Contents?: true

Size: 1.53 KB

Versions: 11

Compression:

Stored size: 1.53 KB

Contents

- rtc_controller_name ||= controller_name
- rtc_header = true if rtc_header.nil?
- rtc_column_header = true if rtc_column_header.nil?
- rtc_footer = true if rtc_footer.nil?
- rtc_partial = rtc_controller_name.singularize if rtc_partial.nil?
- toggle_view = false if toggle_view.nil?
- search_action ||= nil
- search_key ||= 'q'
- advanced_search_attributes ||= nil
- columns_width = columns_width.presence || []
- table_title ||= nil
- rtc_empty_data_message = sanitize "Data #{table_title.presence || t(rtc_controller_name)} kosong" if rtc_empty_data_message.nil?

.component_content
  - if rtc_header.present?
    = render "rich_table_component/rtc/header", 
      search_constraint: search_constraint.presence || nil,
      search_action: search_action, 
      search_key: search_key, 
      rtc_controller_name: rtc_controller_name, 
      rtc_partial: rtc_partial, 
      toggle_view: toggle_view, 
      advanced_search_attributes: advanced_search_attributes,
      table_title: table_title,
      params: params

  = render "rich_table_component/rtc/content", 
    headers: headers, 
    rtc_controller_name: rtc_controller_name, 
    params: params, 
    rtc_column_header: rtc_column_header, 
    rtc_partial: rtc_partial, 
    rtc_empty_data_message: rtc_empty_data_message,
    row_number: row_number,
    table_title: table_title,
    multiple_selection: multiple_selection,
    columns_width: columns_width
  
  - if rtc_footer.present?
    = render "rich_table_component/rtc/footer",
      rtc_controller_name: rtc_controller_name, 
      params: params

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rich_table_component-0.0.30 app/views/rich_table_component/rtc/_component_content.html.haml
rich_table_component-0.0.29 app/views/rich_table_component/rtc/_component_content.html.haml
rich_table_component-0.0.28 app/views/rich_table_component/rtc/_component_content.html.haml
rich_table_component-0.0.27 app/views/rich_table_component/rtc/_component_content.html.haml
rich_table_component-0.0.26 app/views/rich_table_component/rtc/_component_content.html.haml
rich_table_component-0.0.24 app/views/rich_table_component/rtc/_component_content.html.haml
rich_table_component-0.0.22 app/views/rich_table_component/rtc/_component_content.html.haml
rich_table_component-0.0.21 app/views/rich_table_component/rtc/_component_content.html.haml
rich_table_component-0.0.18 app/views/rich_table_component/rtc/_component_content.html.haml
rich_table_component-0.0.17 app/views/rich_table_component/rtc/_component_content.html.haml
rich_table_component-0.0.16 app/views/rich_table_component/rtc/_component_content.html.haml