Module: Bootstrap::TabHelper

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

Defined Under Namespace

Classes: Tabs

Instance Method Summary collapse

Instance Method Details

#tabs(options = {}, &block) ⇒ Object

Show Tabs options:

index: show which tab default
type: pills, tabs  default: tabs
position: below, left, right direction of tab
align: left, right. the alignment of tab, NOT AVAILABLE NOW
inline: true ,false default: false
stacked: true, false default: false
content_options
  every option that can be accepted by tab content div


100
101
102
103
104
# File 'app/helpers/bootstrap/tab_helper.rb', line 100

def tabs(options = {}, &block)
  new_tabs = Tabs.new(self, options)
  capture(new_tabs, &block) if block_given?
  new_tabs.to_s
end