Na Bootstrap ƒe akpawo nagbɔ agbe—fifia kple jQuery ƒe kpeɖeŋutɔ 12 siwo wowɔ ɖe ɖoɖo nu.
A streamlined, gake flexible, xɔ ɖe dekɔnu javascript modal plugin kple dɔwɔwɔ suetɔ kekeake si hiã kple smart defaults ko.
Tsɔ nuɖuɖu siwo le tsia dzi kpe ɖe nusianu kloe ŋu le Bootstrap me kple kpeɖeŋutɔ bɔbɔe sia. Bootstrap na bliboe dropdown menu kpekpeɖeŋu le le navbar, tabs, kple atikekuiwo.
Zã scrollspy nàtsɔ atrɔ asi le kadodo siwo le wò navbar me ŋu le ɖokuiwò si be wòaɖe kadodo si le dɔ wɔm fifia afia le agbalẽxatsaxatsa ƒe nɔnɔme nu.
Zã plugin sia nàtsɔ ana tabs kple pills naɖe vi wu to mɔɖeɖe na wo be woatrɔ to tabbable panes of local content me.
Nu yeye aɖe si woxɔ le jQuery Tipsy ƒe kpeɖeŋutɔa ŋu, Tooltips meɖoa ŋu ɖe nɔnɔmetatawo ŋu o—wozãa CSS3 hena nɔnɔmetatawo kple nyatakaka-nɔnɔmewo hena nutoa me tanyawo dzraɖoƒe.
Tsɔ nyatakaka suesuesue siwo wotsɔ ƒo xlãe, abe esiwo le iPad la dzi ene, kpe ɖe nu ɖesiaɖe ŋu hena nyatakaka evelia ƒe aƒe.
* Ebia be woatsɔ Dɔwɔnu ƒe Aɖaŋuɖoɖowo ade eme
Nuxlɔ̃ame ƒe kpeɖeŋutɔ nye klass sue aɖe si wotsɔna tsɔa dɔwɔwɔ kplikplikpli kpena ɖe nuxlɔ̃amewo ŋu.
Wɔ geɖe wu kple abɔtawo. Dzɔdzɔmeŋusẽ ƒe abɔta gblɔ alo wɔ abɔta ƒe ƒuƒoƒowo na akpa geɖe abe dɔwɔnu ƒe ʋuƒo ene.
Na gɔmeɖoanyi ƒe atsyãwo kple kpekpeɖeŋu si te ŋu trɔna ɖe nɔnɔmewo ŋu na akpa siwo woate ŋu agbã abe accordions kple mɔfiame ene.
Wɔ dzidzɔkpɔkpɔ ƒe ɖoɖowɔɖi na nyatakaka ɖesiaɖe si nèdi be yeana nyatakakawo ƒe slideshow si me woawɔ nu aduadu le.
Gɔmeɖoanyi, si keke ɖe enu bɔbɔe plugin na kabakaba wɔwɔ kabakaba typeaheads dzeaniwo kple nɔnɔme nuŋɔŋlɔ ɖesiaɖe.
Ne èdi tɔtrɔ ƒe ŋusẽkpɔɖeamedzi bɔbɔewo la, tsɔ bootstrap-transition.js kpe ɖe eŋu zi ɖeka be nàgli le modals me alo nàɖe nuxlɔ̃amewo ɖa.
* Wohiã na animation le plugins me
A streamlined, gake flexible, xɔ ɖe dekɔnu javascript modal plugin kple dɔwɔwɔ suetɔ kekeake si hiã kple smart defaults ko.
Wɔ faɛl la ƒe kɔpiLe ete la, wowɔ modal si woɖe ɖe go le mɔ si mewɔa tɔtrɔ o nu.
Ŋutilã nyui ɖeka...
Trɔ modal aɖe to javascript dzi to asiƒoƒo ɖe dzesi si le ete la dzi. Aɖiɖi ɖe anyi eye wòaɖiɖi tso axaa tame.
Dze demo modal gɔmeYɔ modal la to javascript dzi:
- $ ( '#nyeModal' ). modal ( tiatiawɔblɔɖewo ) .
Ŋkɔ | ƒomevi | gᴐmedzeƒe | nuɖᴐɖᴐ |
---|---|---|---|
megbenyawo | boolean ƒe ƒuƒoƒo | nyateƒe | Modal-backdrop ƒe akpa aɖe hã le eme. Alo, gblɔ static na megbenya si metua modal le ʋuʋu dzi o. |
keyboard dzi | boolean ƒe ƒuƒoƒo | nyateƒe | Doa modal la ne wozi escape key dzi |
ɖe fia | boolean ƒe ƒuƒoƒo | nyateƒe | Fia modal la ne wodze egɔme. |
Àteŋu awɔ modals ŋudɔ le wò axa dzi bɔbɔe evɔ mahiã be nàŋlɔ javascript ƒe fli ɖeka pɛ hã o. Ðeko nàɖoe data-toggle="modal"
ɖe controller element dzi kple a data-target="#foo"
alo href="#foo"
si sɔ kple modal element id, eye ne èzi edzi la, adze wò modal gɔme.
Azɔ hã, be nàtsɔ tiatia aɖewo akpe ɖe wò modal kpɔɖeŋu ŋu la, ɖeko nàde wo abe nyatakaka ƒe nɔnɔme bubuwo ene ɖe dziɖuɖu ƒe akpaa alo modal dzesi ŋutɔ dzi.
- <a klass = "btn" data-toggle = "modal" href = "#nyeModal" > Dze Mɔnu gɔme </a>
- <div klass = "modal ɣla" id = "nyeModal" >
- <div klass = "modal-tanya" >
- <bɔt ƒomevi = "bɔt" klass = "tu" data-dismiss = "modal" > × </button>
- <h3> Modal ƒe tanya </h3>
- </div> ƒe nyawo
- <div klass = "modal-ŋutilã" >
- <p> Ŋutilã nyui ɖeka... </p>
- </div> ƒe nyawo
- <div klass = "modal-afɔti" >
- <a href = "#" klass = "btn" nyatakaka-ɖe asi le eŋu = "modal" > Tu </a>
- <a href = "#" class = "btn btn-primary" > Dzra tɔtrɔwo ɖo </a>
- </div> ƒe nyawo
- </div> ƒe nyawo
.fade
klass aɖe akpe ɖe
.modal
element la ŋu (kpɔ demo la be nàkpɔ esia le dɔwɔwɔ me) eye nàde bootstrap-transition.js eme.
Ewɔa wò nyatakakawo ŋudɔ abe modal ene. Lɔ̃ ɖe tiatia siwo woate ŋu awɔ le wo ɖokui si dzi object
.
- $ ( '#nyeModal' ). modal ({ ) .
- keyboard : alakpa
- }) .
Asitɔtrɔ le modal aɖe ŋu.
- $ ( '#nyeModal' ). modal ( 'trɔ asi le eŋu' ) .
Eʋua modal aɖe kple asi.
- $ ( '#nyeModal' ). modal ( 'ɖee fia' ) .
Asi ɣlaa modal aɖe.
- $ ( '#nyeModal' ). modal ( 'ɣla' ) .
Bootstrap ƒe modal klass ɖea nudzɔdzɔ ʋee aɖewo ɖe go na hooking ɖe modal dɔwɔwɔ me.
Nudzᴐdzᴐ | Nuɖᴐɖᴐ |
---|---|
ɖe fia | Nudzɔdzɔ sia doa dzo enumake ne woyɔ show kpɔɖeŋu mɔnu la. |
woɖee fia | Woɖea nudzɔdzɔ sia ne wowɔ modal la be wòadze na zãla (alala be css ƒe tɔtrɔwo nawu enu). |
be | Woɖea nudzɔdzɔ sia ɖa enumake ne woyɔ hide instance mɔnu la. |
si le ɣaɣlame | Woɖea nudzɔdzɔ sia ne modal la ɣla ɖe zãla la vɔ (alala be css ƒe tɔtrɔwo nawu enu). |
- $ ( '#nyeModal' ). on ( 'ɣla' , dɔwɔwɔ () { .
- // wɔ nane...
- }) .
Tsɔ nuɖuɖu siwo le tsia dzi kpe ɖe nusianu kloe ŋu le Bootstrap me kple kpeɖeŋutɔ bɔbɔe sia. Bootstrap na bliboe dropdown menu kpekpeɖeŋu le le navbar, tabs, kple atikekuiwo.
Wɔ faɛl la ƒe kɔpiZi nav ƒe kadodo siwo le navbar kple atikekui siwo le ete la dzi be nàdo nusiwo le ete la kpɔ.
Yɔ nusiwo le fli dzi la to javascript dzi:
- $ ( '.dropdown-trɔtrɔ' ). si le fli dzi () .
Be nàtsɔ dropdown dɔwɔwɔ akpe ɖe element ɖesiaɖe ŋu kaba la, ɖeko nàtsɔe akpe ɖe eŋu data-toggle="dropdown"
eye bootstrap dropdown ɖesiaɖe si sɔ la awɔ dɔ le eɖokui si.
data-target="#fat"
alo
zazã me href="#fat"
.
- <ul klass = "nav nav-tikewo" >
- <li class = "dɔwɔwɔ" ><a href = "#" > Kadodo si nɔa anyi edziedzi </a></li>
- <li klass = "nusiwo le tsia dzi" id = "menu1" >
- <a klass = "ɖe-trɔtrɔ" data-tɔtrɔ = "aɖiɖiɖeme" href = "#menu1" >
- Nusiwo wotsɔna ƒua gbe
- <b klass = "dzikpɔkpɔ" ></b>
- </a>
- <ul klass = "nusiwo le tsia dzi" >
- <li><a href = "#" > Nuwɔna </a></li>
- <li><a href = "#" > Nuwɔna bubu </a></li>
- <li><a href = "#" > Nu bubu aɖe le afisia </a></li>
- <li klass = "mamã" </li>
- <li><a href = "#" > Kadodo si woɖe ɖe vovo </a></li>
- </ul> ƒe nyawo
- </li> ƒe akpa aɖe
- ...
- </ul> ƒe nyawo
Be URL-wo nanɔ anyi nyuie la, zã data-target
nɔnɔmea ɖe href="#"
.
- <ul klass = "nav nav-tikewo" >
- <li klass = "nusiwo le tsia dzi" >
- <a class = "dropdown-toggle" data-toggle = "dropdown" nyatakaka-taɖodzinu = "#" href = "mɔ/yi/axa.html" >
- Nusiwo wotsɔna ƒua gbe
- <b klass = "dzikpɔkpɔ" ></b>
- </a>
- <ul klass = "nusiwo le tsia dzi" >
- ...
- </ul> ƒe nyawo
- </li> ƒe akpa aɖe
- </ul> ƒe nyawo
Programatic api na menuwo ƒe dɔwɔwɔ na navbar alo tabbed navigation si wona.
ScrollSpy ƒe kpeɖeŋutɔa nye na nav taɖodzinuwo ƒe asitɔtrɔ le eɖokui si le agbalẽxatsaxatsa ƒe nɔƒe nu.
Wɔ faɛl la ƒe kɔpiYi teƒe si le ete la eye nàkpɔ mɔfiame yeyea. Woade dzesi nu sue siwo le fli dzi la hã. Tee kpɔ!
Ad leggings keytar, brunch id nutata kplɔ̃ɖoƒe dolor labore. Pitchfork yr enim lo-fi hafi wodzra qui. Tumblr agble-to-kplɔ̃ kekefɔkpa ƒe gomenɔamesiwo nusianu. Anim keffiyeh carles ƒe lãgbalẽ. Velit seitan mcsweeney ƒe fotoɖeƒe 3 amegãxi ɣleti irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui ɖewohĩ mèse wo ŋkɔ kpɔ o et cardigan kakaɖedzi ga culpa biodiesel wes anderson atsyɔ̃ɖoɖo. Nihil tattooed accusamus, cred nukokoedonamela biodiesel keffiyeh aɖaŋudɔwɔla ullamco consequat.
Veniam marfa ƒe ɖaƒoƒo ƒe ɖaƒoƒo, adipisicing fugiat velit pitchfork ɖa. Freegan ɖa aliqua cupidat mcsweeney ƒe vero. Cupidatat ene loko nisi, ea helvetica nulla carles. Tattooed cosby sweater nuɖuɖu agbatsɔʋu, mcsweeney ƒe quis non freegan vinyl. Lo-fi wes anderson +1 ƒe awudziwuiwo. Carles non atsyɔ̃ɖoɖo ƒe kamedede quis gentrify. Brooklyn adipisicing asinudɔwɔwɔ biya vice keytar deserunt.
Occaecat commodo si nye lãgbalẽgolo si woyɔna be delectus. Fap asinudɔwɔwɔ biya deserunt skateboard ea. Lomo keke ƒe gomenɔamesiwo adipisicing banh mi, velit ea sunt kplɔe ɖo dzidzenu locavore ɖeka-dzɔtsoƒe kɔfi le magna veniam. Agbe kɔkɔ id vinyl, echo tsaɖibɔ consequat quis aliquip banh mi pitchfork. Vero VHS est amiɖeɖe ɖe lãme na ame. Consectetur nisi DIY minim dɔla ƒe akplo. Cred ex le, si li tegbee delectus consectetur fanny pack iphone.
In incididunt echo park, officia deserunt mcsweeney's proident master cleanse thundercats sapiente veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum craft beer. Single-origin coffee wayfarers irure four loko, cupidatat terry richardson master cleanse. Assumenda you probably haven't heard of them art party fanny pack, tattooed nulla cardigan tempor ad. Proident wolf nesciunt sartorial keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea portland before they sold out four loko. Locavore enim nostrud mlkshk brooklyn nesciunt.
Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.
Keytar twee blog, culpa dɔla kotoku marfa nusianu delectus nuɖuɖu agbatsɔʋu. Sapiente ƒe wɔwɔme id assumenda. Locavore sed helvetica cliche irony, dziɖegbewo ɖewohĩ mèse nu tso wo ŋu o consequat hoodie gluten-maɖemaɖe lo-fi fap aliquip. Labore elit placeat hafi wodzra vɔ, terry richardson proident brunch nesciunt quis cosby awudziwui pariatur keffiyeh ut helvetica aɖaŋudɔwɔla. Cardigan asinudɔwɔwɔ biya seitan dzadzraɖo velit. VHS chambray laboris nye ɣeyiɣi kpui aɖe ƒe veniam. Anim mollit minim commodo ullamco dziɖegbe ƒe avuwo.
Yɔ agbalẽxatsaxatsa la to javascript dzi:
- $ ( '#navbar' ). agbalẽxatsaxatsa () .
Be nàtsɔ scrollspy nuwɔna akpe ɖe wò topbar navigation ŋu bɔbɔe la, ɖeko nàtsɔe akpe data-spy="scroll"
ɖe element si nèdi be yeatsa ŋku ŋu (zi geɖe la, esia anye ŋutilã la).
- <ŋutilã data-spy = "ʋuʋu" > ... </ŋutilã>
<a href="#home">home</a>
nasɔ kple nane si le dom la me abe
<div id="home"></div>
.
Ne èle scrollspy zãm kpe ɖe nusiwo wotsɔ kpe ɖe DOM ŋu alo wo ɖeɖe ɖa ŋu la, ahiã be nàyɔ gbugbɔgawɔ mɔnu la abe ale:
- $ ( '[nyatakaka-ŋkutsala="ʋuʋu"]' ). ɖesiaɖe ( dɔwɔwɔ () { .
- var $ ŋkutsala = $ ( esia ). scrollspy ( 'gbugbɔ' ) .
- });
Ŋkɔ | ƒomevi | gᴐmedzeƒe | nuɖᴐɖᴐ |
---|---|---|---|
offset ƒe ƒuƒoƒo | xexlẽdzesi | 10 | Pixels siwo woatsɔ atso dzi ne wole akɔnta bum le agbalẽxatsaxatsa ƒe nɔƒe ŋu. |
Nudzᴐdzᴐ | Nuɖᴐɖᴐ |
---|---|
wɔ dɔ | Nudzɔdzɔ sia doa dzo ɣesiaɣi si agbalẽxatsaxatsa la va le nu yeye aɖe ŋu dɔ wɔm. |
Plugin sia tsɔa tab kple pill ƒe dɔwɔwɔ kabakaba, si trɔna kpena ɖe eŋu hena tɔtrɔ to nutoa me nyatakakawo me.
Wɔ faɛl la ƒe kɔpiZi tab siwo le ete dzi be nàtrɔ asi le akpa ɣaɣlawo dome, to menu siwo le ete dzi gɔ̃ hã.
Raw denim ɖewohĩ mèse wo ŋkɔ kpɔ o jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth aƒetɔ kɔklɔ. Aɖatsiwo ƒe nyagbɔgblɔ ɣeyiɣi kpui aɖe, williamsburg carles vegan helvetica. Reprehenderit lãwula retro keffiyeh drɔ̃ekukula synth. Cosby ƒe awudziwui eu banh mi, qui irure terry richardson ex squid. Aliquip placeat lãwo ƒe lãmesẽfefewɔlawo ƒe iphone. Seitan aliquip quis cardigan amerikatɔwo ƒe awudodo, lãwula 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.
Kakaɖedzi ga seitan letterpress, keytar raw denim keffiyeh etsy nutata kplɔ̃ɖoƒe hafi wodzra vɔ aƒetɔ kɔ gluten-maɖemaɖe squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, nutata kplɔ̃ɖoƒe locavore amegãxi cliche kɔkɔ agbe echo tsaɖibɔ Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi hafi wodzra agble-ɖe-kplɔ̃ VHS dɔlékui locavore cosby awudziwui. Lomo amegãxi viral, moustache readymade dziɖegbe keffiyeh aɖaŋu biya marfa agbenyuinɔnɔ. Amegãxi salvia freegan, sartorial keffiyeh echo tsaɖibɔ vegan.
Na tabbable tabs nawɔ dɔ to javascript dzi (ele be woawɔ tab ɖesiaɖe ŋudɔ ɖekaɖeka):
- $ ( '#nyeTab a' ). zi ( dɔwɔwɔ ( e ) ) { .
- e . xe mɔ ɖeDefault ();
- $ ( esia ). tab ( 'ɖee fia' );
- }) .
Àte ŋu awɔ tab ɖekaɖekawo ŋudɔ le mɔ vovovowo nu:
- $ ( '#nyeTab a[href="#nyatakakadzraɖoƒe"]' ). tab ( 'ɖee fia' ); // Tia tab le ŋkɔ nu
- $ ( '#nyeTab a:gbãtɔ' ). tab ( 'ɖee fia' ); // Tia tab gbãtɔ
- $ ( '#nyeTab a:mlɔetɔ' ). tab ( 'ɖee fia' ); // Tia tab mamlɛtɔ
- $ ( '# nyeTab li: eq (2) a' ). tab ( 'ɖee fia' ); // Tia tab etɔ̃lia (0-indexed) .
Àte ŋu awɔ tab alo pill navigation dɔ javascript aɖeke ŋɔŋlɔ to element aɖe gbɔgblɔ data-toggle="tab"
alo ɖe edzi ko me. data-toggle="pill"
Ne ètsɔ nav
kple nav-tabs
klasswo kpe ɖe tab ul
la ŋu la, awɔ bootstrap tab ƒe atsyã ŋudɔ.
- <ul klass = "nav nav-tabs" >
- <li><a href = "#aƒe" nyatakaka-trɔtrɔ = "tab" > Aƒe </a></li>
- <li><a href = "#nyatakakadzraɖoƒe" data-toggle = "tab" > Nɔnɔmetata </a></li>
- <li><a href = "#gbedasiwo" data-toggle = "tab" > Gbedasiwo </a></li>
- <li><a href = "#ɖoɖowo" data-toggle = "tab" > Ðoɖowo </a></li>
- </ul> ƒe nyawo
Ewɔa tab element kple emenyawo ƒe nugoe ŋudɔ. Ele be tab nanye a data-target
alo href
taɖodzinu si nye container node le DOM la me.
- <ul klass = "nav nav-tabs" id = "nyeTab" >
- <li klass = "dɔwɔwɔ" ><a href = "#aƒe" > Aƒe </a></li>
- <li><a href = "#nyatakakadzraɖoƒe" > Nɔnɔmetata </a></li>
- <li><a href = "#gbedasiwo" > Gbedasiwo </a></li>
- <li><a href = "#ɖoɖowo" > Ðoɖowo </a></li>
- </ul> ƒe nyawo
- <div klass = "tab-menyawo" >
- <div klass = "tab-pane le dɔ wɔm" id = "aƒe" > ... </div>
- <div klass = "tab-pane" id = "nɔnɔmetata" > ... </div>
- <div klass = "tab-pane" id = "gbedasiwo" > ... </div>
- <div klass = "tab-pane" id = "ɖoɖowo" > ... </div>
- </div> ƒe nyawo
- <ŋɔŋlɔdzesi>
- $ ( dɔwɔwɔ () { .
- $ ( '#nyeTab a:mlɔetɔ' ). tab ( 'ɖee fia' );
- }) .
- </script> ƒe nyawo
Nudzᴐdzᴐ | Nuɖᴐɖᴐ |
---|---|
ɖe fia | Nudzɔdzɔ sia doa dzo le tab show dzi, gake hafi woaɖe tab yeyea afia. Zã event.target kple event.relatedTarget nàtsɔ aɖo taɖodzinu na tab si le dɔ wɔm kple tab si le dɔ wɔm va yi (ne ele eme) ɖe wo nɔewo yome. |
woɖee fia | Nudzɔdzɔ sia dzona le tab ɖeɖefia me ne woɖe tab aɖe fia vɔ. Zã event.target kple event.relatedTarget nàtsɔ aɖo taɖodzinu na tab si le dɔ wɔm kple tab si le dɔ wɔm va yi (ne ele eme) ɖe wo nɔewo yome. |
- $ ( 'a [nyatakaka-trɔtrɔ="tab"]' ). on ( 'woɖee fia' , dɔwɔwɔ ( e ) { .
- e . taɖodzinu // tab si wowɔ dɔ le
- e . relatedTarget // tab si do ŋgɔ
- }) .
Wotsɔ jQuery.tipsy ƒe kpeɖeŋutɔ nyuitɔ kekeake si Jason Frame ŋlɔ la ʋãe; Dɔwɔnu ƒe aɖaŋuɖoɖowo nye tɔtrɔ yeye aɖe, si meɖoa ŋu ɖe nɔnɔmetatawo ŋu o, zãa css3 hena nɔnɔmetatawo, kple data-nɔnɔmewo hena teƒea ƒe tanyawo dzraɖoƒe.
Wɔ faɛl la ƒe kɔpiTsɔ asi ɖo kadodo siwo le ete la dzi be nàkpɔ dɔwɔnu ƒe aɖaŋuɖoɖowo:
Tight pants next level keffiyeh ɖewohĩ mèse wo ŋkɔ kpɔ o. Fotoɖeƒe ɖaɖa raw denim letterpress vegan dɔla kotoku stumptown. Agble-to-kplɔ̃ seitan, mcsweeney ƒe fixie si li tegbee quinoa 8-bit american awuwo le terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo dziɖegbe ƒe avuwo. Tofu biodiesel williamsburg marfa, ene loko mcsweeney ƒe kɔ vegan chambray. A really ironic artisan whatever keytar , scenester agble-ɖe-kplɔ̃ banksy Austin twitter asi freegan cred raw denim ɖeka-dzɔtsoƒe kɔfi viral.
Dze dɔwɔnu ƒe aɖaŋuɖoɖoa gɔme to javascript dzi:
- $ ( '#kpɔɖeŋu' ). dɔwɔnu ƒe aɖaŋuɖoɖo ( tiatiawɔblɔɖe ) .
Ŋkɔ | ƒomevi | gᴐmedzeƒe | nuɖᴐɖᴐ |
---|---|---|---|
nɔnɔmetata si me woɖea nɔnɔmetatawo le | boolean ƒe ƒuƒoƒo | nyateƒe | zã css fade ƒe tɔtrɔ ɖe dɔwɔnu ƒe aɖaŋuɖoɖoa dzi |
ɖoɖo ɖe teƒe aɖe | ka|dɔwɔwɔ | 'dzi' | alesi woaɖo dɔwɔnu ƒe aɖaŋuɖoɖoa ɖe teƒe - ta | ete | miame | nyui |
tiatiawɔla | ka | alakpa | Ne wotsɔ tiatiawɔnu aɖe na la, woatsɔ dɔwɔnu ƒe aɖaŋuɖoɖo nuawo ade asi na taɖodzinu siwo woɖo. |
tanya | kaƒoƒo | wᴐ dᴐ | '' . | tanya ƒe asixɔxɔ gbãtɔ ne `title` tag mele afima o |
daƒe | ka | 'hover'. | alesi wodzea dɔwɔnu ƒe aɖaŋuɖoɖo gɔmee - hover | susu tsɔtsɔ ɖo nu ŋu | asi nu |
hehe ɖe megbe | xexlẽdzesi | nu | 0. | delay ɖeɖefia kple eɣla dɔwɔnu ƒe aɖaŋuɖoɖo (ms) - meku ɖe asi trigger ƒomevi ŋu o Ne wotsɔ xexlẽdzesi aɖe na la, wozãa megbedede ɖe ɣla/ɖee fia siaa ŋu Nu ƒe wɔwɔme enye: |
Le dɔwɔwɔ ta la, Tooltip kple Popover data-apis nye opt in. Ne èdi be yeazã wo la, ɖeko nàgblɔ tiatiawɔblɔɖe ƒe tiatia aɖe.
- <a href = "#" rel = "dɔwɔnu ƒe aɖaŋuɖoɖo" title = "dɔwɔnu ƒe aɖaŋuɖoɖo gbãtɔ" > tsɔ asi le dzinye </a>
Kpe dɔwɔnu ƒe aɖaŋuɖoɖo ƒe asiléƒe ɖe element ƒe nuƒoƒoƒu ŋu.
Eɖea element aɖe ƒe dɔwɔnu ƒe aɖaŋuɖoɖo fiana.
- $ ( '#nu vevi aɖe' ). dɔwɔnu ƒe aɖaŋuɖoɖo ( 'ɖee fia' ) .
Ɣla element aɖe ƒe dɔwɔnu ƒe aɖaŋuɖoɖo.
- $ ( '#nu vevi aɖe' ). dɔwɔnu ƒe aɖaŋuɖoɖo ( 'ɣla' ) .
Trɔa element aɖe ƒe dɔwɔnu ƒe aɖaŋuɖoɖo.
- $ ( '#nu vevi aɖe' ). dɔwɔnu ƒe aɖaŋuɖoɖo ( 'toggle' ) .
Tsɔ nyatakaka suesuesue siwo wotsɔ ƒo xlãe, abe esiwo le iPad la dzi ene, kpe ɖe nu ɖesiaɖe ŋu hena nyatakaka evelia ƒe aƒe.
* Ebia be woatsɔ Tooltip ade eme
Wɔ faɛl la ƒe kɔpiTsɔ asi ɖo abɔta la dzi be nàdze popover la gɔme.
Na popovers nawɔ dɔ to javascript dzi:
- $ ( '#kpɔɖeŋu' ). popover ( tiatia siwo woawɔ ) .
Ŋkɔ | ƒomevi | gᴐmedzeƒe | nuɖᴐɖᴐ |
---|---|---|---|
nɔnɔmetata si me woɖea nɔnɔmetatawo le | boolean ƒe ƒuƒoƒo | nyateƒe | zã css fade ƒe tɔtrɔ ɖe dɔwɔnu ƒe aɖaŋuɖoɖoa dzi |
ɖoɖo ɖe teƒe aɖe | ka|dɔwɔwɔ | 'nyui' | alesi woaɖo popover la ɖe ɖoɖo nu - ta | ete | miame | nyui |
tiatiawɔla | ka | alakpa | ne wotsɔ tiatiawɔnu aɖe na la, woatsɔ dɔwɔnu ƒe aɖaŋuɖoɖo nuawo ade asi na taɖodzinu siwo woɖo |
daƒe | ka | 'hover'. | alesi wodzea dɔwɔnu ƒe aɖaŋuɖoɖo gɔmee - hover | susu tsɔtsɔ ɖo nu ŋu | asi nu |
tanya | kaƒoƒo | wᴐ dᴐ | '' . | tanya ƒe asixɔxɔ gbãtɔ ne `title` nɔnɔme mele afima o |
eme nuwo | kaƒoƒo | wᴐ dᴐ | '' . | default content value ne `data-content` nɔnɔme mele afima o |
hehe ɖe megbe | xexlẽdzesi | nu | 0. | delay ɖeɖefia kple eɣla popover (ms) - meku ɖe asi trigger ƒomevi ŋu o Ne wotsɔ xexlẽdzesi aɖe na la, wozãa megbedede ɖe ɣla/ɖee fia siaa ŋu Nu ƒe wɔwɔme enye: |
Le dɔwɔwɔ ta la, Tooltip kple Popover data-apis nye opt in. Ne èdi be yeazã wo la, ɖeko nàgblɔ tiatiawɔblɔɖe ƒe tiatia aɖe.
Edzea popovers gɔme na element nuƒoƒoƒu.
Eɖea elements popover aɖe fiana.
- $ ( '#nu vevi aɖe' ). popover ( 'ɖee fia' ) .
Ɣla elementwo ƒe popover aɖe.
- $ ( '#nu vevi aɖe' ). popover ( 'ɣla' ) .
Trɔ asi le elements popover ŋu.
- $ ( '#nu vevi aɖe' ). popover ( 'trɔ asi le eŋu' ) .
Nuxlɔ̃ame ƒe kpeɖeŋutɔ nye klass sue aɖe si wotsɔna tsɔa dɔwɔwɔ kplikplikpli kpena ɖe nuxlɔ̃amewo ŋu.
Hee ɖa anyiNuxlɔ̃ame ƒe kpeɖeŋutɔa wɔa dɔ le nuxlɔ̃ame gbedasi siwo woɖona edziedzi dzi, eye wòxea mɔ na gbedasiwo.
Trɔ esia kple ema eye nàgadze agbagba ake. Duis mollis, est non commodo luctus, nisi erat agbatsɔla ƒe lãgbalẽ, eget lacinia odio sem nec elit. Cras mattis consectetur purus nɔa anyi ɖe lãmi me.
Na nuxlɔ̃ame aɖe ɖeɖeɖa to javascript dzi nawɔ dɔ:
- $ ( ".nuxlɔ̃ame" ). nuxlɔ̃ame () .
Ðeko nàtsɔe akpe data-dismiss="alert"
ɖe wò nutrenu ƒe dzesi ŋu be wòana nuxlɔ̃ame ƒe nutrenu ƒe dɔwɔwɔ le eɖokui si.
- <a klass = "tu" data-dismiss = "nuxlɔ̃ame" href = "#" > &ɣeyiɣiwo; </a>
Bla nuxlɔ̃amewo katã kple dɔwɔwɔ kplikplikpli. Be wò nuxlɔ̃amewo nawɔ dɔ ne wotu la, kpɔ egbɔ be wowɔ .fade
kple .in
klass la le wo ŋu xoxo.
Etua nuxlɔ̃ame aɖe nu.
- $ ( ".nuxlɔ̃ame" ). alert ( 'tu ɖe eŋu' ) .
Bootstrap ƒe nuxlɔ̃ame ƒe hatsotso la ɖea nudzɔdzɔ ʋee aɖewo ɖe go hena hooking ɖe nuxlɔ̃ame ƒe dɔwɔwɔ me.
Nudzᴐdzᴐ | Nuɖᴐɖᴐ |
---|---|
tu | Nudzɔdzɔ sia doa dzo enumake ne woyɔ close kpɔɖeŋu mɔnu la. |
wotu nu ɖo | Woɖea nudzɔdzɔ sia ne wotu nuxlɔ̃amea (alala be css ƒe tɔtrɔwo nawu enu). |
- $ ( '#nye-nuxlɔ̃ame' ). bind ( 'tu' , dɔwɔwɔ () { .
- // wɔ nane...
- }) .
Na gɔmeɖoanyi ƒe atsyãwo kple kpekpeɖeŋu si te ŋu trɔna ɖe nɔnɔmewo ŋu na akpa siwo woate ŋu agbã abe accordions kple mɔfiame ene.
Wɔ faɛl la ƒe kɔpi* Ebia be woatsɔ Transitions ƒe kpeɖeŋutɔa ade eme.
Míezã collapse plugin la, míewɔ accordion ƒe atsyã ƒe widget bɔbɔe aɖe:
Na wòawɔ dɔ to javascript dzi:
- $ ( ".klɔƒe" ). dze anyi () .
Ŋkɔ | ƒomevi | gᴐmedzeƒe | nuɖᴐɖᴐ |
---|---|---|---|
dzila | tiatiawɔla | alakpa | Ne selector la ekema woatu nusiwo katã woateŋu agbã le dzila si woɖo la te ne woɖe nu sia si woateŋu agbã la fia. (si sɔ kple accordion ƒe nuwɔna si wozãna tsã) |
trɔ asi le eŋu | boolean ƒe ƒuƒoƒo | nyateƒe | Trɔa nusi woate ŋu agbã la le yɔyɔ dzi |
Ðeko nàtsɔe akpe ɖe eŋu data-toggle="collapse"
kple a data-target
to element be wòade dɔ asi na element si woate ŋu agbã la dzi kpɔkpɔ le eɖokui si. Nɔnɔmea data-target
xɔa css tiatia aɖe be woatsɔ awɔ collapse la ŋudɔ ɖe. Kpɔ egbɔ be yetsɔ klass la kpe collapse
ɖe nusi woate ŋu agbã ŋu. Ne èdi be wòaʋu le gɔmedzedzea me la, tsɔ klass bubu kpee in
.
- <button class = "btn btn-afɔku" nyatakaka-trɔtrɔ = "mumu" nyatakaka-taɖodzinu = "#demo" >
- bɔbɔe si woate ŋu agbã
- </button> ƒe dzesi
- <div id = "demo" klass = "gbã le" > ... </div>
data-parent="#selector"
. Kpɔ demo la be nàkpɔ esia le dɔwɔwɔ me.
Ewɔa wò nyatakakawo ŋudɔ abe nusi woate ŋu agbã ene. Lɔ̃ ɖe tiatia siwo woate ŋu awɔ le wo ɖokui si dzi object
.
- $ ( '#nye si woate ŋu aƒo ƒu' ). ƒuƒuiƒe ({
- toggle : alakpa
- }) .
Trɔa nusi woate ŋu agbã la ɖe nusi woɖe fia alo woɣla me.
Fia nusi woate ŋu agbã.
Eɣlaa nusi woate ŋu agbã.
Bootstrap ƒe collapse klass ɖea nudzɔdzɔ ʋee aɖewo ɖe go na hooking ɖe collapse dɔwɔwɔ me.
Nudzᴐdzᴐ | Nuɖᴐɖᴐ |
---|---|
ɖe fia | Nudzɔdzɔ sia doa dzo enumake ne woyɔ show kpɔɖeŋu mɔnu la. |
woɖee fia | Woɖea nudzɔdzɔ sia ne wowɔ collapse element aɖe be wòadze na zãla (alala be css ƒe tɔtrɔwo nawu enu). |
be | Wodaa tu nudzɔdzɔ sia enumake ne woyɔ hide mɔnua vɔ. |
si le ɣaɣlame | Woɖea nudzɔdzɔ sia ne woɣla collapse element aɖe ɖe zãla la (alala be css ƒe tɔtrɔwo nawu enu). |
- $ ( '#nye si woate ŋu aƒo ƒu' ). on ( 'ɣla' , dɔwɔwɔ () { .
- // wɔ nane...
- }) .
Kpɔ slideshow si le ete la ɖa.
Ƒo ka to javascript dzi:
- $ ( '.ʋuʋudedi' ). carousel ƒe ʋuƒo () .
Ŋkɔ | ƒomevi | gᴐmedzeƒe | nuɖᴐɖᴐ |
---|---|---|---|
dometsotso | xexlẽdzesi | 5000 ƒe xexlẽme | Ɣeyiɣi agbɔsɔsɔme si woatsɔ ahe ɖe megbe le nu aɖe ƒe gasɔdodo le eɖokui si dome. Ne alakpae la, carousel mazɔ le eɖokui si o. |
tɔ vie | ka | "hover" . | Etɔ te kekeli si le carousel la me le mouseenter dzi eye wògadze kekeli si le carousel la dzi la gɔme le mouseleave dzi. |
Wozãa nyatakaka ƒe nɔnɔmewo na conrol siwo do ŋgɔ kple esiwo kplɔe ɖo. Kpɔ kpɔɖeŋu ƒe dzeside si le ete la ɖa.
- <div id = "nyeCarousel" klass = "carousel ƒe ʋuʋudedi" >
- <!-- Carousel nuawo -->
- <div klass = "carousel-ememetɔ" >
- <div klass = "nu si le dɔ wɔm" > ... </div>
- <div klass = "nu" > ... </div>
- <div klass = "nu" > ... </div>
- </div> ƒe nyawo
- <!-- Ʋuʋudedi nav -->
- <a klass = "carousel-dziɖuɖu miame" href = "#nyeCarousel" data-slide = "do ŋgɔ" > ‹ </a>
- <a klass = "carousel-dziɖuɖu ƒe gomenɔamesi" href = "#nyeCarousel" data-slide = "si kplɔe ɖo" > › </a>
- </div> ƒe nyawo
Edzea carousel la gɔme kple tiatia siwo woate ŋu atia object
eye wòdzea gasɔdodo gɔme to nuawo me.
- $ ( '.ʋuʋudedi' ). carousel ƒe ʋuƒo ({ .
- dometsotso : 2000
- }) .
Tsitsatsa to carousel-nuawo me tso miame yi ɖusime.
Exea mɔ na carousel la be wòagazɔ to nuwo me o.
Trɔ carousel la ɖe frame aɖe koŋ dzi (0 si wotu ɖe edzi, si sɔ kple array).
Tsitre ɖe nusi do ŋgɔ ŋu.
Tsitre ɖe nu si kplɔe ɖo ŋu.
Bootstrap ƒe carousel klass ɖea nudzɔdzɔ eve ɖe go na hooking ɖe carousel dɔwɔwɔ me.
Nudzᴐdzᴐ | Nuɖᴐɖᴐ |
---|---|
ɖiɖi | Nudzɔdzɔ sia dzona enumake ne woyɔ slide kpɔɖeŋu mɔnu la. |
ƒuƒlu | Wodaa tu nudzɔdzɔ sia ne carousel la wu eƒe slide ƒe tɔtrɔ nu. |
Gɔmeɖoanyi, si keke ɖe enu bɔbɔe plugin na kabakaba wɔwɔ kabakaba typeaheads dzeaniwo kple nɔnɔme nuŋɔŋlɔ ɖesiaɖe.
Wɔ faɛl la ƒe kɔpiDze nuŋɔŋlɔ gɔme le akpa si le ete la me be nàɖe nusiwo do ŋgɔ na nuŋɔŋlɔa afia.
Yɔ typeahead to javascript dzi:
- $ ( '.ŋlɔ ŋgɔgbe' ). ŋlɔ nu ɖe ŋgɔ () .
Ŋkɔ | ƒomevi | gᴐmedzeƒe | nuɖᴐɖᴐ |
---|---|---|---|
dzᴐtsoƒe | ƒuƒoƒo ƒe ƒuƒoƒo | [ ] . | Nyatakakatsoƒe si ŋu woabia nya tsoe. |
nuwo | xexlẽdzesi | 8 | Nusiwo woaɖe afia le xexlẽdzesi si le fli me la ƒe xexlẽme si sɔ gbɔ wu. |
matcher | wᴐ dᴐ | nu suesuesue siwo me womesea nu le o | Mɔnu si wozãna tsɔ nyaa nenye be nyabiase aɖe sɔ kple nu aɖe. Lɔ̃ ɖe nyaʋiʋli ɖeka dzi, item si ŋu woado nyabiasea kpɔ le. Kpɔ nyabiase si li fifia kple this.query . Trɔ boolean true ne biabia nye ɖeka. |
nuƒoƒoƒula | wᴐ dᴐ | exact match, ŋɔŋlɔdzesi gãwo ƒe dzesiwo, ŋɔŋlɔdzesi gãwo ƒe vovototodedeameme |
Mɔnu si wozãna tsɔ ɖoa autocomplete ƒe emetsonuwo ɖe ɖoɖo nu. Lɔ̃ ɖe nyaʋiʋli ɖeka dzi items eye typeahead ƒe kpɔɖeŋu ƒe kekeme le esi. Tsɔ nyabiase si nèbia fifia la ɖo this.query . |
nusi te gbe ɖe edzi | wᴐ dᴐ | te gbe ɖe nusiwo katã sɔ kple wo nɔewo siwo woɖo ɖi la dzi | Mɔnu si wozã tsɔ te gbe ɖe autocomplete ƒe emetsonuwo dzi. Lɔ̃ ɖe nyaʋiʋli ɖeka dzi item eye typeahead ƒe kpɔɖeŋu ƒe kekeme le esi. Ele be wòatrɔ html. |
Tsɔ nyatakaka ƒe nɔnɔmewo kpee be nàŋlɔ element aɖe si me typeahead ƒe dɔwɔwɔ le la agbalẽ me.
- <input type = "nuŋɔŋlɔ" data-na = "typeahead" >
Edzea nyawo tsɔtsɔ de eme gɔme kple typeahead.