Nyomtatás
2013. október 08., kedd 06:05

Tabs

Írta: 
Értékelés:
(0 szavazat)

Example tabs

Add quick, dynamic tab functionality to transition through panes of local content, even via dropdown menus.

Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.

Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.

Extends tabbed navigation

This plugin extends the tabbed navigation component to add tabbable areas.

Usage

Enable tabbable tabs via JavaScript (each tab needs to be activated individually):

$('#myTab a').click(function (e) {
  e.preventDefault()
  $(this).tab('show')
})

You can activate individual tabs in several ways:

$('#myTab a[href="#profile"]').tab('show') // Select tab by name
$('#myTab a:first').tab('show') // Select first tab
$('#myTab a:last').tab('show') // Select last tab
$('#myTab li:eq(2) a').tab('show') // Select third tab (0-indexed)

Markup

You can activate a tab or pill navigation without writing any JavaScript by simply specifying data-toggle="tab" or data-toggle="pill" on an element. Adding the nav and nav-tabs classes to the tab ul will apply the Bootstrap tab styling, while adding the nav and nav-pills classes will apply pill styling.

<!-- Nav tabs -->
<ul class="nav nav-tabs">
  <li><a href="#home" data-toggle="tab">Home</a></li>
  <li><a href="#profile" data-toggle="tab">Profile</a></li>
  <li><a href="#messages" data-toggle="tab">Messages</a></li>
  <li><a href="#settings" data-toggle="tab">Settings</a></li>
</ul>

<!-- Tab panes -->
<div class="tab-content">
  <div class="tab-pane active" id="home">...</div>
  <div class="tab-pane" id="profile">...</div>
  <div class="tab-pane" id="messages">...</div>
  <div class="tab-pane" id="settings">...</div>
</div>

Fade effect

To make tabs fade in, add .fade to each .tab-pane. The first tab pane must also have .in to properly fade in initial content.

<div class="tab-content">
  <div class="tab-pane fade in active" id="home">...</div>
  <div class="tab-pane fade" id="profile">...</div>
  <div class="tab-pane fade" id="messages">...</div>
  <div class="tab-pane fade" id="settings">...</div>
</div>

Methods

$().tab

Activates a tab element and content container. Tab should have either a data-target or an href targeting a container node in the DOM.

<ul class="nav nav-tabs" id="myTab">
  <li class="active"><a href="#home" data-toggle="tab">Home</a></li>
  <li><a href="#profile" data-toggle="tab">Profile</a></li>
  <li><a href="#messages" data-toggle="tab">Messages</a></li>
  <li><a href="#settings" data-toggle="tab">Settings</a></li>
</ul>

<div class="tab-content">
  <div class="tab-pane active" id="home">...</div>
  <div class="tab-pane" id="profile">...</div>
  <div class="tab-pane" id="messages">...</div>
  <div class="tab-pane" id="settings">...</div>
</div>

<script>
  $(function () {
    $('#myTab a:last').tab('show')
  })
</script>

Events

Event TypeDescription
show.bs.tab This event fires on tab show, but before the new tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.
shown.bs.tab This event fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
  e.target // activated tab
  e.relatedTarget // previous tab
})
Megjelent: 8006 alkalommal Utoljára frissítve: 2014. február 20., csütörtök 17:43
Strandétterem

Nunc a orci sagittis, bibendum nunc iaculis, luctus urna. Morbi elementum, lorem id venenatis posuere, nibh urna molestie eros, id vulputate quam arcu ut nunc. Quisque fermentum convallis dolor

Webhely: www.nootheme.com

2033 hozzászólás

  • Hozzászólás hivatkozás ceremonial tobacco 2024. március 13., szerda 03:46 Írta: ceremonial tobacco

    There's certainly a great deal to find out about this
    topic. I really like all the points you have made.

  • Hozzászólás hivatkozás Yulan SEO 2024. február 26., hétfő 08:42 Írta: Yulan SEO

    GSA Content Generator es la herramienta imprescindible para los marketers que buscan contenido de calidad.
    ¡No dejes pasar esta oportunidad!

  • Hozzászólás hivatkozás Constance Layh 2024. február 24., szombat 09:37 Írta: Constance Layh

    We have iptv and other all payment soluation
    Gobuypro.com


    ** Paypal balance to buy bitcoin safely way we have.
    0.European All Country Paypal account available Persona & Business✅
    1.UK/USA verified Business & Personal PayPal Accounts✅
    2.Binance Verified/Verified plus✅
    3.Cashapp VCC activate/BTC enable✅
    4.Wise Personal/Business account✅
    5.Revolut business account✅
    6.Buy Aged Facebook account 5 year old✅
    8.Payoneer/Venmo/Pst.net account available✅
    9.Any $ Dollar exchange service✅
    10.Unlimited email sending software life time✅
    12.Buy USA bank+ credit card account with all access✅

    Contact
    Whatsapp: +44 7308 244260
    Telegram: @gobuypro
    Skype: live:.cid.236f261e6814fdd8
    Mail: gobuypro@protonmail.com

  • Hozzászólás hivatkozás Sherita Rico 2024. február 22., csütörtök 04:52 Írta: Sherita Rico

    We have iptv and other all payment soluation
    Gobuypro.com


    ** Paypal balance to buy bitcoin safely way we have.
    0.European All Country Paypal account available Persona & Business✅
    1.UK/USA verified Business & Personal PayPal Accounts✅
    2.Binance Verified/Verified plus✅
    3.Cashapp VCC activate/BTC enable✅
    4.Wise Personal/Business account✅
    5.Revolut business account✅
    6.Buy Aged Facebook account 5 year old✅
    8.Payoneer/Venmo/Pst.net account available✅
    9.Any $ Dollar exchange service✅
    10.Unlimited email sending software life time✅
    12.Buy USA bank+ credit card account with all access✅

    Contact
    Whatsapp: +44 7308 244260
    Telegram: @gobuypro
    Skype: live:.cid.236f261e6814fdd8
    Mail: gobuypro@protonmail.com

  • Hozzászólás hivatkozás Brandontes 2024. február 22., csütörtök 03:06 Írta: Brandontes

    go to these guys https://blur-nft-marketplace.org/

  • Hozzászólás hivatkozás Karachi escort 2023. december 27., szerda 10:50 Írta: Karachi escort

    Hello mates, nice article and fastidious arguments commented here, I am actually enjoying
    by these.

  • Hozzászólás hivatkozás Hollie Morrell 2023. november 01., szerda 01:49 Írta: Hollie Morrell

    We Provide EU/USA Paypal/Cashapp/Binance/Wise/Bank/iptv Account Fully Verified

    0.European All Country Paypal account available Persona & Business✅
    1.USA verified Business & Personal PayPal Accounts✅
    2.Binance Verified/Verified plus✅
    3.Cashapp VCC activate/BTC enable✅
    4.Wise Personal/Business account✅
    5.Revolut business account✅
    6.Buy Aged Facebook account 5 year old✅
    8.UK Real Company documents with any name✅
    9.Any $ Dollar exchange service✅
    10.Unlimited email sending software life time✅
    11.iptv Reseller credit panel & Subscription✅
    12.Buy USA bank+ credit card account with all access✅

    Contact
    Whatsapp: +1 (515)758-0120
    Telegram: @gotinco
    ICQ: @gobuypro

    ✈️ I will give you Account full details like---  
    1.Location USA
    2.Proxy
    3.Name/DOB
    4.Full Details
    5.Paypal Address
    6.Email access
    7.Bank info
    8.Card info
    9.USA Number access
    10.Unlimited transaction-Business Acc
    11.Paypal payment supported
    12.Document Available

  • Hozzászólás hivatkozás Chasity Alice 2023. október 20., péntek 15:07 Írta: Chasity Alice

    We Provide EU/USA Paypal/Cashapp/Binance/Wise/Bank/iptv Account Fully Verified

    0.European All Country Paypal account available Persona & Business✅
    1.USA verified Business & Personal PayPal Accounts✅
    2.Binance Verified/Verified plus✅
    3.Cashapp VCC activate/BTC enable✅
    4.Wise Personal/Business account✅
    5.Revolut business account✅
    6.Buy Aged Facebook account 5 year old✅
    8.UK Real Company documents with any name✅
    9.Any $ Dollar exchange service✅
    10.Unlimited email sending software life time✅
    11.iptv Reseller credit panel & Subscription✅
    12.Buy USA bank+ credit card account with all access✅

    Contact
    Whatsapp: +1 (515)758-0120
    Telegram: @gotinco
    ICQ: @gobuypro

    ✈️ I will give you Account full details like---  
    1.Location USA
    2.Proxy
    3.Name/DOB
    4.Full Details
    5.Paypal Address
    6.Email access
    7.Bank info
    8.Card info
    9.USA Number access
    10.Unlimited transaction-Business Acc
    11.Paypal payment supported
    12.Document Available

  • Hozzászólás hivatkozás KevinwhaPs 2023. október 19., csütörtök 18:06 Írta: KevinwhaPs

    [url=https://mego.hn]ссылка на mega[/url] - сайт mega sb не работает, ссылка на mega

  • Hozzászólás hivatkozás KevinwhaPs 2023. október 19., csütörtök 17:17 Írta: KevinwhaPs

    [url=https://mego.hn]mega sb официальный сайт[/url] - сайт mega sb не работает, сайт mega sb