Class: Grapple::Components::HtmlRow
- Inherits:
-
HtmlComponent
- Object
- BaseComponent
- HtmlComponent
- Grapple::Components::HtmlRow
- Defined in:
- lib/grapple/components/html_row.rb
Instance Attribute Summary
Attributes inherited from BaseComponent
#builder, #columns, #params, #records, #template
Instance Method Summary collapse
-
#render(content, *options) ⇒ Object
TODO: should be able to take a block for the content.
Methods inherited from BaseComponent
Constructor Details
This class inherits a constructor from Grapple::Components::BaseComponent
Instance Method Details
#render(content, *options) ⇒ Object
TODO: should be able to take a block for the content
6 7 8 |
# File 'lib/grapple/components/html_row.rb', line 6 def render(content, *) (indent + template.content_tag(:tr, content.html_safe, *) + "\n").html_safe end |