Method: UiBibz::Ui::Ux::Tables::TableCard#pre_render
- Defined in:
- lib/ui_bibz/ui/ux/tables/table_card.rb
#pre_render ⇒ Object
Render html tag
118 119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/ui_bibz/ui/ux/tables/table_card.rb', line 118 def pre_render init_components content_tag :div, do form_tag(url_for(url_parameters), method: :get) do store.parameters.with_indifferent_access.reject { |k, v| default_parameters?(k) || v.blank? }.each do |k, v| concat tag(:input, type: 'hidden', name: k, value: v) end concat tag(:input, type: 'hidden', name: 'store_id', value: store.id) unless store.id.nil? # if there is more one table in html page concat @items.join.html_safe end end end |