Class: Grapple::Components::Toolbar

Inherits:
HtmlComponent show all
Defined in:
lib/grapple/components/toolbar.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(*options, &block) ⇒ Object



7
8
9
10
11
# File 'lib/grapple/components/toolbar.rb', line 7

def render(*options, &block)
	options = options[0] || {}
	html = block_or_components(components, options, &block)
	builder.row "<th colspan=\"#{num_columns}\">#{html}</th>", :class => 'toolbar'
end