Module: Bootstrap::TableHelper
- Included in:
- BaseHelper
- Defined in:
- app/helpers/bootstrap/table_helper.rb
Defined Under Namespace
Instance Method Summary collapse
-
#table(options = {}) {|table| ... } ⇒ Object
Show bootstrap style table.
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
197 198 199 200 201 |
# File 'app/helpers/bootstrap/table_helper.rb', line 197 def table(={}) table = Table.new(self, ) yield table table.to_s end |