ExEffectiveBootstrap v0.1.17 ExEffectiveBootstrap.Tabs View Source

Bootstrap tabs

Link to this section Summary

Functions

Individual Bootstrap tab, works within tabs helper"

Bootstrap tabs

Link to this section Functions

Link to this function

tab(label, badge \\ nil, block)

View Source

Individual Bootstrap tab, works within tabs helper"

Examples:

<%= tabs do %> <%= tab "One" %> <%= tab "Two", 30 %> <%= tab "Three", content_tag(:span, 24, class: "badge badge-info") %> <% end %>

Bootstrap tabs

<%= tabs(active: "Two", class: "asdf") do %> <%= tab("One") do %>

<p>This is tab one</p>

<% end %>

<%= tab("Two") do %>

<p>This is tab two</p>

<% end %> <% end %>