Module: Bootstrap::TableHelper

Included in:
BaseHelper
Defined in:
app/helpers/bootstrap/table_helper.rb

Defined Under Namespace

Classes: Row, Table

Instance Method Summary collapse

Instance Method Details

#table(options = {}) {|table| ... } ⇒ Object

Show bootstrap style table

options: Hash

caption: caption of table.
caption_options: caption's options
collection: the collection for generating table.
type: bootstrap table type, a string is splited by spaces. default: 'hover'
      for example: 'hover striped', 'hover fluid bordered'...
other options can be accepted by table

Yields:



197
198
199
200
201
# File 'app/helpers/bootstrap/table_helper.rb', line 197

def table(options={})
  table = Table.new(self, options)
  yield table
  table.to_s
end