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



5
6
7
# File 'lib/grapple/components/html_row.rb', line 5

def render(content, *options)
  (indent + template.(:tr, content.html_safe, *options) + "\n").html_safe
end