Class: Grapple::Components::HtmlHeader

Inherits:
HtmlComponent show all
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

#initialize, setting

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(*options, &block)
	html = block_or_components(components, options[0] || {}, &block)
	"<thead>\n#{html}</thead>\n".html_safe
end