Module: TableToCsvHelper

Defined in:
app/helpers/table_to_csv_helper.rb

Instance Method Summary collapse

Instance Method Details

#table_export_tag(id = '', options = {}) ⇒ Object



2
3
4
5
6
7
8
9
10
11
# File 'app/helpers/table_to_csv_helper.rb', line 2

def table_export_tag(id='',options={})
  (:button,"#{options[:export_link_text] || 'Export'}" ,
              id: "export_table_to_csv",
              "data-export" =>"export",
              "data-id" => id,
              :style => ("width:#{options[:width]};
                          height:#{options[:height]};
                          color: #{options[:color]};
                          background-color: #{options[:bgcolor]}"))
end