Class: Grapple::HtmlTableBuilder

Inherits:
BaseTableBuilder show all
Defined in:
lib/grapple/html_table_builder.rb

Direct Known Subclasses

DataGridBuilder

Instance Attribute Summary

Attributes inherited from BaseTableBuilder

#columns, #params, #records, #template

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseTableBuilder

#after_table, #before_table, configure, helper, #initialize

Constructor Details

This class inherits a constructor from Grapple::BaseTableBuilder

Class Method Details

.after_container(template, options) ⇒ Object



25
26
27
# File 'lib/grapple/html_table_builder.rb', line 25

def self.after_container(template, options)
  ''
end

.before_container(template, options) ⇒ Object



21
22
23
# File 'lib/grapple/html_table_builder.rb', line 21

def self.before_container(template, options)
  ''
end

.container_attributes(template, options) ⇒ Object



15
16
17
18
19
# File 'lib/grapple/html_table_builder.rb', line 15

def self.container_attributes(template, options)
  return {
    :class => 'grapple' 
  }
end

Instance Method Details

#table(content) ⇒ Object



11
12
13
# File 'lib/grapple/html_table_builder.rb', line 11

def table(content)
  "<table>#{content}</table>\n".html_safe
end