Sha256: 569b24b4e701d3e6d59b27d9e7b7e5243d56a61221f2ed15bda39868e724cf14

Contents?: true

Size: 1.1 KB

Versions: 8

Compression:

Stored size: 1.1 KB

Contents

- rtc_controller_name ||= controller_name
- rtc_column_header = true if rtc_column_header.nil?
- rtc_partial = rtc_controller_name.singularize if rtc_partial.nil?
- rtc_empty_data_message = sanitize "Data #{t(rtc_controller_name)} kosong" if rtc_empty_data_message.nil?
- columns_width = columns_width.presence || []

.rtc_content  
  .rtc_grid_header{style: (rtc_column_header.present? ? '' : 'display: none !important')}
    - if columns_width.present?
      - headers.each_with_index do |header, i|
        .rtc_gh_item{'data-column-width' => columns_width[i]}
          = header.present? ? sort_link(header, rtc_controller_name: rtc_controller_name, params: params, rtc_partial: rtc_partial) : raw(" ")
    - else
      - headers.each do |header|
        .rtc_gh_item
          = header.present? ? sort_link(header, rtc_controller_name: rtc_controller_name, params: params, rtc_partial: rtc_partial) : raw(" ")
        
  .rtc_grid
    = render "rich_table_component/rtc/table", 
      rtc_controller_name: rtc_controller_name, 
      rtc_partial: rtc_partial, 
      rtc_empty_data_message: rtc_empty_data_message

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rich_table_component-0.0.9 app/views/rich_table_component/rtc/_content.html.haml
rich_table_component-0.0.8 app/views/rich_table_component/rtc/_content.html.haml
rich_table_component-0.0.7 app/views/rich_table_component/rtc/_content.html.haml
rich_table_component-0.0.6 app/views/rich_table_component/rtc/_content.html.haml
rich_table_component-0.0.5 app/views/rich_table_component/rtc/_content.html.haml
rich_table_component-0.0.4 app/views/rich_table_component/rtc/_content.html.haml
rich_table_component-0.0.3 app/views/rich_table_component/rtc/_content.html.haml
rich_table_component-0.0.2 app/views/rich_table_component/rtc/_content.html.haml