Module: FlexaLib::Helpers::TabHelpers

Included in:
FlexaLib::Helpers
Defined in:
lib/flexa_lib/helpers/tab_helpers.rb

Instance Method Summary collapse

Instance Method Details

#flexa_tab_frame(tab, active = "", &block) ⇒ Object

TABS_HELPER



29
30
31
32
33
# File 'lib/flexa_lib/helpers/tab_helpers.rb', line 29

def flexa_tab_frame(tab,active="",&block)
     :div, :class=>"tab-pane "+active.to_s, :id=>tab do
      block.call  
    end
end

TABS_HELPER



13
14
15
16
17
18
19
# File 'lib/flexa_lib/helpers/tab_helpers.rb', line 13

def flexa_tab_link(tab,title,active="")
   :li, :class=>active.to_s do
     :a, :href=>"#"+tab.to_s, "data-toggle"=>"tab" do
      title
    end
  end  
end

#flexa_tabs(&block) ⇒ Object

TABS_HELPER



6
7
8
9
10
# File 'lib/flexa_lib/helpers/tab_helpers.rb', line 6

def flexa_tabs(&block)
   :ul,:class=>"nav nav-tabs" do
    block.call  
  end  
end

#flexa_tabs_area(&block) ⇒ Object

TABS_HELPER



22
23
24
25
26
# File 'lib/flexa_lib/helpers/tab_helpers.rb', line 22

def flexa_tabs_area(&block)
   :div,:class=>"tab-content" do
    block.call  
  end  
end