ExEffectiveBootstrap v0.1.17 ExEffectiveBootstrap.Tabs View Source
Bootstrap tabs
Link to this section Summary
Link to this section Functions
Link to this function
tab(label, badge \\ nil, block)
View Sourcetab(String.t(), any(), {:do, Phoenix.HTML.Safe.t()}) :: Phoenix.HTML.Safe.t()
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 %>
Link to this function
tabs(opts \\ [], list)
View Sourcetabs(Keyword.t(), {:do, Phoenix.HTML.Safe.t()}) :: Phoenix.HTML.Safe.t()
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 %>