Class: Matestack::Ui::Bootstrap::Components::TabNav

Inherits:
BaseComponent
  • Object
show all
Defined in:
lib/matestack/ui/bootstrap/components/tab_nav.rb

Instance Method Summary collapse

Instance Method Details

#responseObject



11
12
13
14
15
16
17
18
19
20
# File 'lib/matestack/ui/bootstrap/components/tab_nav.rb', line 11

def response
  if context.items.present?
    ul nav_attributes do
      nav_items_partial
    end
  end
  div class: "tab-content", id: "#{context.id}Content" do
    yield if block_given?
  end
end