Class: Grapple::Components::HtmlRow

Inherits:
HtmlComponent show all
Defined in:
lib/grapple/components/html_row.rb

Instance Attribute Summary

Attributes inherited from BaseComponent

#builder, #columns, #params, #records, #template

Instance Method Summary collapse

Methods inherited from BaseComponent

#initialize, setting

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, *options)
	(indent + template.(:tr, content.html_safe, *options) + "\n").html_safe
end