Class: FormForms::Elements::TableHeaderField
- Inherits:
-
Field
- Object
- BaseElement
- Field
- FormForms::Elements::TableHeaderField
- Defined in:
- lib/form_forms/elements/table_header_field.rb
Instance Attribute Summary
Attributes inherited from BaseElement
Instance Method Summary collapse
-
#initialize(cell_args = {}, &generator) ⇒ TableHeaderField
constructor
A new instance of TableHeaderField.
- #render(builder, view) ⇒ Object
Methods inherited from BaseElement
Constructor Details
#initialize(cell_args = {}, &generator) ⇒ TableHeaderField
Returns a new instance of TableHeaderField.
4 5 6 7 |
# File 'lib/form_forms/elements/table_header_field.rb', line 4 def initialize(cell_args={}, &generator) self.cell_args cell_args super(&generator) end |
Instance Method Details
#render(builder, view) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/form_forms/elements/table_header_field.rb', line 11 def render(builder, view) cell_args = eval_property(:cell_args, builder, view) view.content_tag(:th, cell_args) do super end end |