Navs
Qillqakuna chaymanta ejemplokuna imayna Bootstrap kaqpa churasqa puriy componentekuna llamk'achinapaq.
Navegación Bootstrap kaqpi tarikuq general marcayta chaymanta estilokuna qunakuy, base .nav
clasemanta ruwasqa chaymanta mana atisqa estadokunaman. Sapa estilopura tikranapaq tikraq clasekunata tikray.
Componente base .nav
flexbox kaqwan ruwasqa chaymanta huk sinchi cimientota qun tukuy laya componentes de navegación ruwanapaq. Wakin estilo llallichiykunata (listakunawan llamk'anapaq), wakin t'inki hunt'achiyta aswan hatun tupachiy áreas kaqpaq, chaymanta sapsi mana atichisqa estilota yapan.
Componente base .nav
nisqapiqa manam ima .active
estadotapas churanchu. Kay qatiq ejemplokunan claseta churanku, aswantaqa kay clase particular mana ima estilo especialtapas llank’achisqanmanta rikuchinapaq.
Clases tukuyninpi llamk'achisqa kanku, chayrayku marcasqayki super flexible kanman. Utilizar <ul>
s como arriba, o rollo tu propio con dir un <nav>
elemento. Imaraykuchus chay .nav
llamk'achiykuna display: flex
, nav t'inkikuna kikinta purinku imaynachus nav elementokuna ruwanku, ichaqa mana chay yapasqa markawan.
Cambiar el estilo de .nav
s componente con modificadores y utilidades. Necesitasqaykiman hina chaqruspa tupachiy, utaq qampaq ruway.
Nav kaqniykipa horizontal chiqanchayta flexbox yanapakuykunawan tikray . Ñawpaqmanta, navs lluq'iman chiqanchasqa kanku, ichataq chawpiman icha pañaman chiqanchasqaman mana sasachakuspa tikrayta atinki.
Chawpichasqa kaykunawan .justify-content-center
:
Paña-allichasqa kaywan .justify-content-end
:
.flex-column
Navegaciónniyki pilay flex elemento direccionta utilidadwan tikraspa . ¿Necesitas apilarlos en algunos puertos de vistas pero no otros? Kutichiq layakunata llamk'achiy (kayhina, .flex-sm-column
).
Sapa kuti hina, sayaq puriyqa atikunmi mana <ul>
s nisqawanpas.
Hawamanta nav básica kaqmanta hapin chaymanta .nav-tabs
claseta yapan huk tabbed interfaz ruwanapaq. Chaykunata llamk'achiy tablakuna ruwanapaq tabla JavaScript plugin nisqaykuwan .
Chay kikin HTML nisqallata hap'iy, ichataq .nav-pills
chaypa rantinpi llamk'achiy:
Kallpanchay qampaq .nav
's contenidokuna hunt'asqa tarikuq anchota huk iskay tikraq clasekunamanta mast'arinanpaq. Llapan kaq espaciota .nav-item
s nisqaykiwan proporcionalmente hunt’anaykipaqqa .nav-fill
. Reparay llapa horizontal espacio ocupasqa kasqanmanta, ichaqa manan sapa nav elemento kaqlla anchoyoqchu.
-manta ruwasqa puriyta llamk'achkaspa , anclakunapi <nav>
churayta ama qunqaychu ..nav-item
Igual anchoyuq elementokunapaqqa .nav-justified
. Llapan horizontal espacio nav t'inkikunawan hap'isqa kanqa, ichataq mana .nav-fill
hawapi hinachu, sapa nav elemento kaqlla anchoyuq kanqa.
.nav-fill
-sapanchasqa puriyta llamk'achispa rikch'anaman rikch'akuq , anclakunapi <nav>
churayta ama qunqaychu ..nav-item
Sichus kutichiq nav variaciones kaqmanta necesitanki, huk serie flexbox yanapakuykunata llamk'achiyta yuyaykuy . Aswan verbose kaqtinpas, kay yanapakuykuna aswan hatun ruwayta qunku tukuy kutichiq p'akiykunapi. Uraypi kaq rikch'anapi, navniyku aswan pisi p'akiypi pilasqa kanqa, chaymanta huk horizontal churayman adaptakunqa mayqinchus tarikuq anchota hunt'achin huch'uy p'akiymanta qallarispa.
Sichus navs llamk'achkanki huk purina barra qunapaq, ama hina kaspa huk role="navigation"
aswan lógico tayta waqaychanaman yapay chaymanta <ul>
, utaq huk <nav>
elementota tukuy puriypa muyuriqninpi p'istuy. Ama ruwayta <ul>
kikinman yapaychu, kayqa hark'anmanmi yanapaq tecnologiakuna chiqap lista hina willasqa kananpaq.
Reparay puriy barrakuna, qhawaypi estiloyuq kaptinpas .nav-tabs
clasewan tablakuna hina, mana qusqachu kanan tiyan , role="tablist"
utaq role="tab"
atributos role="tabpanel"
. Kaykunaqa interfazkuna tablayuq dinamico kaqpaqlla allin kanku, imaynachus WAI ARIA Qillqana Ruwaykunapi willasqa kachkan . Rikuy JavaScript ruwayta huk rikch'anapaq kay t'aqapi dinamico tabbed interfaces kaqpaq.
Yanapakuy urayk'aq menúkuna huk pisi yapasqa HTML kaqwan chaymanta urayk'aq JavaScript plugin kaqwan .
JavaScript plugin nisqa tablata llamk'achiy —sapallan utaq huñusqa bootstrap.js
willañiqi kaqnintakama churay— purina tablakunayku chaymanta pastillakunayku mast'ariypaq llaqta contenidomanta tablakuna ruwanakuna ruwanapaq, urayk'aq menúkuna kaqnintakamapas.
Sichus JavaScriptniykumanta pukyuta ruwachkanki, chayta munanutil.js
.
Interfaces de pestañas dinámicas, imaynachus WAI ARIA Autorización Ruwaykunapirole="tablist"
willasqa , , role="tab"
, role="tabpanel"
, chaymanta yapa atributokuna mañanku chaymanta aria-
estructurankuta, ruwanankuta chaymanta kunan estadonkuta yanapakuq tecnologiakuna (pantalla ñawiriqkuna hina) ruwaqkunaman apachinankupaq.
Reparay kay interfazkuna tablayuq dinamico kaqpi mana urayk'aq menúkunayuq kananku tiyan, kay iskaynin llamk'anapaq chaymanta yaykuy atiy sasachakuykunata ruwan. Huk llamk'achiy qhawaymanta, kunan rikuchisqa tablamanta llamk'achiq elemento mana chaylla rikukuq kasqan (imaynachus wichq'asqa urayk'aq menú ukhupi kachkan) pantayta ruwanman. Huk yaykuy atiymanta qhawaymanta, kunan pacha mana kanchu yuyayniyuq ñan kay laya ruwayta huk WAI ARIA patrón estándar kaqman mapa ruwanapaq, niyta munan mana facilta ruwayta atikunmanchu yanapakuq tecnologiakuna llamk'aqkunaman entiendenapaq.
Crudo denim probablemente no has escuchado de ellos pantalones cortos vaqueros Austin. Nesciunt tofu tocón aliqua, retro sintetizador maestro limpieza. Bigote cliché temporal, williamsburg carles vegana helvetica. Reprehenderit carnicero retro keffiyeh musquy hapiq sintetizador. Suéter cosby eu banh mi, qui irure terry richardson ex calamar. Aliquip lugarat salvia cillum iphone. Seitan aliquip quis cardigan ropa americana, carnicero 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.
Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.
Yanapanapaq necesidadniykiman hina, kayqa llamkan <ul>
-sapanchasqa markawan, imaynachus patamanta rikuchisqa, utaq mayqin munasqa “kikiykipaq rollo” markawan. Reparay sichus , llamk'achkanki <nav>
, mana chiqalla chayman yapanaykichu tiyan role="tablist"
, kayqa elementop nativo ruwayninta puriypa señalnin hina llallichinman. Aswanpas, huk elemento alternativo nisqaman tikray (urapi ejemplopi, huk simple <div>
) hinaspa <nav>
muyuriqninpi p'istuy.
Tabs pluginpas pastillakunawan llamk’an.
Consecuat occaecat ullamco amet mana eiusmod nostrud dolore irure incididunt est duis animal sunt officia. Fugiat velit proident aliquip nisi incididunt ejercicio de nariz proident est nisi. Irure magna elit commodo anim ex veniam culpa eiusmod id nostrud tiyay cupidatat en veniam ad. Eiusmod consequat eu adipisicing minim animal aliquip cupidatat culpa excepteur quis nisqa. Occaecat tiyay eu ejercicio irure Lorem incididunt nostrud.
Ad pariatur nostrud pariatur exercitation ipsum ipsum culpa mollit commodo mollit ex. Aute sunt incididunt amet commodo est sint nisi deserunt pariatur do. Aliquip ex eiusmod voluptate exercitation cillum id incididunt elit sunt. Qui minim sit magna Lorem id et dolore velit Lorem amet exercitation duis deserunt. Anim id labore elit adipisicing ut in id occaecat pariatur ut ullamco ea tempor duis.
Est quis nulla laborum officia ad nisi ex nostrud culpa Lorem excepteur aliquip dolor aliqua irure ex. Nulla ut duis ipsum nisi elit fugiat commodo sunt reprehenderit laborum veniam eu veniam. Eiusmod minim exercitation fugiat irure ex labore incididunt do fugiat commodo aliquip sit id deserunt reprehenderit aliquip nostrud. Amet ex cupidatat excepteur aute veniam incididunt mollit cupidatat esse irure officia elit do ipsum ullamco Lorem. Ullamco ut ad minim do mollit labore ipsum laboris ipsum commodo sunt tempor enim incididunt. Commodo quis sunt dolore aliquip aute tempor irure magna enim minim reprehenderit. Ullamco consectetur culpa veniam sint cillum aliqua incididunt velit ullamco sunt ullamco quis quis commodo voluptate. Mollit nulla nostrud adipisicing aliqua cupidatat aliqua pariatur mollit voluptate voluptate consequat non.
Y con pastillas verticales.
Cillum ad ut irure temporal velit nostrud occaecat ullamco aliqua anim Lorem sint. Veniam sint duis incididunt ruway esse magna mollit excepteur laborum qui. Id id reprehenderit tiyay eu aliqua occaecat quis y velit excepteur laborum mollit dolore eiusmod. Ipsum dolor en occaecat commodo y voluptate minimo reprehenderit mollit pariatur nisqapi. Deserunt mana llamkayniyuq enim y cillum eu deserunt excepteur ea incididunt minim occaecat.
Culpa dolor voluptate do laboris laboris irure reprehenderit id incididunt duis pariatur mollit aute magna pariatur consectetur. Eu veniam duis non ut dolor deserunt commodo et minim in quis laboris ipsum velit id veniam. Quis ut consectetur adipisicing officia excepteur non sit. Ut et elit aliquip labore Lorem enim eu. Ullamco mollit occaecat dolore ipsum id officia mollit qui esse anim eiusmod do sint minim consectetur qui.
Fugiat id quis dolor culpa eiusmod anim velit excepteur proident dolor aute qui magna. Ad proident laboris ullamco esse anim Lorem Lorem veniam quis Lorem irure occaecat velit nostrud magna nulla. Velit et et proident Lorem do ea tempor officia dolor. Reprehenderit Lorem aliquip labore est magna commodo est ea veniam consectetur.
Eu dolore ea ullamco dolore Lorem id cupidatat excepteur reprehenderit consectetur elit id dolor proident in cupidatat officia. Voluptate excepteur commodo labore nisi cillum duis aliqua do. Aliqua amet qui mollit consectetur nulla mollit velit aliqua veniam nisi id do Lorem deserunt amet. Culpa ullamco sit adipisicing labore officia magna elit nisi in aute tempor commodo eiusmod.
Huk tabla utaq pastilla puriyta mana ima JavaScript qillqaspa llamk'achiyta atikunki huk elemento kaqpi willaylla data-toggle="tab"
utaq data-toggle="pill"
huk elemento kaqpi. Kay willay layakunata .nav-tabs
utaq kaqpi llamk'achiy .nav-pills
.
JavaScript kaqnintakama tablakuna ruwanakuna atichiy (sapa tablakuna sapalla llamk'achinan tiyan):
Sapa tablakunata achka ruwaykunapi llamk'achiyta atikunki:
To make tabs fade in, add .fade
to each .tab-pane
. The first tab pane must also have .show
to make the initial content visible.
Asynchronous methods and transitions
All API methods are asynchronous and start a transition. They return to the caller as soon as the transition is started but before it ends. In addition, a method call on a transitioning component will be ignored.
Activates a tab element and content container. Tab should have either a data-target
or an href
targeting a container node in the DOM.
Selects the given tab and shows its associated pane. Any other tab that was previously selected becomes unselected and its associated pane is hidden. Returns to the caller before the tab pane has actually been shown (i.e. before the shown.bs.tab
event occurs).
Destroys an element’s tab.
When showing a new tab, the events fire in the following order:
hide.bs.tab
(on the current active tab)show.bs.tab
(on the to-be-shown tab)hidden.bs.tab
(on the previous active tab, the same one as for thehide.bs.tab
event)shown.bs.tab
(on the newly-active just-shown tab, the same one as for theshow.bs.tab
event)
If no tab was already active, then the hide.bs.tab
and hidden.bs.tab
events will not be fired.
Event Type | Description |
---|---|
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. |
hide.bs.tab | This event fires when a new tab is to be shown (and thus the previous active tab is to be hidden). Use event.target and event.relatedTarget to target the current active tab and the new soon-to-be-active tab, respectively. |
hidden.bs.tab | This event fires after a new tab is shown (and thus the previous active tab is hidden). Use event.target and event.relatedTarget to target the previous active tab and the new active tab, respectively. |