Module: Tungsten::TableHelper
- Defined in:
- app/helpers/tungsten/table_helper.rb
Defined Under Namespace
Classes: TableDrawer
Instance Method Summary collapse
Instance Method Details
#tr_drawer(id, options = {}, &block) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/helpers/tungsten/table_helper.rb', line 3 def tr_drawer(id, = {}, &block) colspan = .delete(:colspan) || 100 [:class] = "#{[:class]} table-drawer-content toggle-drawer".strip [:animate] = 'drawer' if [:animate].nil? content_tag(:tr, class: "table-drawer") { content_tag(:td, colspan: colspan) { drawer(id, { class: "table-drawer-content-wrapper", hidden: .delete(:hidden), animate: .delete(:animate) }) { content_tag(:div, , &block) } } } end |