Module: Iquest::SimpleTable::TableHelper
- Included in:
- Iquest::SimpleTable
- Defined in:
- lib/iquest/simple_table/table_helper.rb
Instance Method Summary collapse
Instance Method Details
#simple_table_for(*args) {|builder| ... } ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/iquest/simple_table/table_helper.rb', line 4 def simple_table_for(*args) collection = args.first opts = args. opts[:html] ||= {} opts[:html][:class] ||= ['filter-table'] opts[:html][:class] << ' ' if opts[:html][:class].is_a? String opts[:responsive] ||= true builder = SimpleTable::TableBuilder.new self, collection, opts yield builder builder.to_s end |