Class: Grapple::Components::HtmlHeader
- Inherits:
-
HtmlComponent
- Object
- BaseComponent
- HtmlComponent
- Grapple::Components::HtmlHeader
- Defined in:
- lib/grapple/components/html_header.rb
Overview
thead element for tables
Instance Attribute Summary
Attributes inherited from BaseComponent
#builder, #columns, #params, #records, #template
Instance Method Summary collapse
Methods inherited from BaseComponent
Constructor Details
This class inherits a constructor from Grapple::Components::BaseComponent
Instance Method Details
#render(*options, &block) ⇒ Object
9 10 11 12 |
# File 'lib/grapple/components/html_header.rb', line 9 def render(*, &block) html = block_or_components(components, [0] || {}, &block) "<thead>\n#{html}</thead>\n".html_safe end |