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='',={}) content_tag(:button,"#{[:export_link_text] || 'Export'}" , id: "export_table_to_csv", "data-export" =>"export", "data-id" => id, :style => ("width:#{[:width]}; height:#{[:height]}; color: #{[:color]}; background-color: #{[:bgcolor]}")) end |