Class: EacRailsUtils::DataTableHelper::DataTable

Inherits:
Object
  • Object
show all
Defined in:
app/helpers/eac_rails_utils/data_table_helper/data_table.rb,
app/helpers/eac_rails_utils/data_table_helper/data_table/value_cell.rb

Defined Under Namespace

Classes: ValueCell

Constant Summary collapse

CONTAINER_CSS_CLASS =
%w[table-responsive].freeze
TABLE_CSS_CLASSES =
%w[table table-striped].freeze

Instance Method Summary collapse

Instance Method Details

#outputObject



13
14
15
16
17
18
19
# File 'app/helpers/eac_rails_utils/data_table_helper/data_table.rb', line 13

def output
  view.(:div, class: CONTAINER_CSS_CLASS) do
    view.(:table, id: id, class: TABLE_CSS_CLASSES) do
      head << body
    end
  end << script
end