module Golden::Theme::Foundation::TabsHelper
Public Instance Methods
foundation_remote_tab_pane(url, tag_id, default) { |active| ... }
click to toggle source
# File lib/golden/theme/foundation/tabs_helper.rb, line 49 def foundation_remote_tab_pane url, tag_id, default active = current_page?(url) || tag_id == default tab_class = 'content' tab_class << ' active' if active content_tag :div, class: tab_class, id: tag_id do yield active if block_given? end end
foundation_tab_pane(tag_id, default) { |active| ... }
click to toggle source
# File lib/golden/theme/foundation/tabs_helper.rb, line 26 def foundation_tab_pane tag_id, default active = tag_id == default tab_class = 'content' tab_class << ' active' if active content_tag :div, class: tab_class, id: tag_id do yield active if block_given? end end
foundation_tabs(options = {})
click to toggle source
# File lib/golden/theme/foundation/tabs_helper.rb, line 3 def foundation_tabs options = {}, &block html_class = options.delete :class options = { class: "tabs #{html_class}".strip, data: { tab: true } }.deep_merge options foundation_dl_tag options, &block end