Module: FlexaLib::Helpers::TabHelpers
- Included in:
- FlexaLib::Helpers
- Defined in:
- lib/flexa_lib/helpers/tab_helpers.rb
Instance Method Summary collapse
-
#flexa_tab_frame(tab, active = "", &block) ⇒ Object
TABS_HELPER.
-
#flexa_tab_link(tab, title, active = "") ⇒ Object
TABS_HELPER.
-
#flexa_tabs(&block) ⇒ Object
TABS_HELPER.
-
#flexa_tabs_area(&block) ⇒ Object
TABS_HELPER.
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) content_tag :div, :class=>"tab-pane "+active.to_s, :id=>tab do block.call end end |
#flexa_tab_link(tab, title, active = "") ⇒ Object
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="") content_tag :li, :class=>active.to_s do content_tag :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) content_tag :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) content_tag :div,:class=>"tab-content" do block.call end end |