Mema ba composants ya Bootstrap na bomoi —sikoyo na ba plugins 12 ya jQuery personnalisé.
A rationalisé, mais flexible, kozua na plugin modal javascript ya bonkoko na kaka fonctionnalité minimum esengeli mpe ba défauts intelligents.
Bakisa ba menu ya kokita na pene na eloko nyonso na Bootstrap na plugin oyo ya pete. Bootstrap ezali na lisungi ya menu ya kokita mobimba na na navbar, ba onglets, mpe ba pilili.
Salelá scrollspy mpo na kosala mikolo oyo automatiquement ba liens oyo ezali na navbar na yo mpo na kolakisa lien oyo ezali kosala sikoyo na kotalela position ya défilement.
Salelá plugin oyo mpo na kosala ete ba onglets mpe ba pilili ezala na ntina mingi na kopesaka bango nzela ya kobongola na nzela ya ba panneaux ya ba tabbables ya makambo ya esika.
Bozui ya sika na plugin ya jQuery Tipsy, Tooltips etie motema te na bilili —basalelaka CSS3 mpo na ba animations mpe ba data-attributs mpo na kobomba titre ya esika.
Bakisa ba superpositions ya mike ya contenus, lokola oyo ezali na iPad, na élément nionso pona ko loger ba informations secondaires.
* Esengi ete ba Tooltips ezala na kati
Plugin ya alerte ezali classe moko ya moke mpo na kobakisa fonctionnalité ya proche na ba alertes.
Sala mingi na ba boutons. Bouton ya contrôle ezo loba to kosala ba groupes ya ba boutons pona ba composants ebele lokola ba barres d'outils.
Bozua ba styles ya base na soutien flexible pona ba composants collapsibles lokola ba accordions na navigation.
Salá esengo ya makambo nyonso oyo olingi kopesa diaporama ya makambo oyo ezali na kati.
Plugin ya moboko, oyo ebakisami na pete mpo na kosala nokinoki ba typeaheads ya elegan na bokoti ya makomi ya formulaire nyonso.
Mpo na ba effets ya transition simple, kotia bootstrap-transition.js mbala moko mpo na ko glisser na ba modals to ko fade out ba alertes.
* Esengeli mpo na animation na ba plugins
A rationalisé, mais flexible, kozua na plugin modal javascript ya bonkoko na kaka fonctionnalité minimum esengeli mpe ba défauts intelligents.
Télécharger fichierAwa na se ezali na modal oyo esalemi na ndenge ya statique.
Nzoto moko ya malamu...
Toggle modal moko via javascript na ko cliquer bouton oyo ezali awa na se. Ekokita mpe ekosila na kati longwa na likoló ya lokasa.
Lancer modal ya démonstrationBenga modal na nzela ya javascript:
- $ ( '#Modal na ngai' ). modal ( ba options ) .
Nkombo | lolenge | mbeba | ndimbola |
---|---|---|---|
fond d’écran | boolean | ya solo | Ezali na eleman moko ya modal-backdrop. Na lolenge mosusu, lakisa static mpo na fond d'écran oyo ekangaka te modal na clic. |
clavier ya kosala | boolean | ya solo | Ekangaka modal tango ba fingi touche ya escape |
kolakisa | boolean | ya solo | Ezali kolakisa modal tango ebandisami. |
Okoki ko activer ba modals na page na yo facilement sans que okoma ata ligne moko ya javascript. Kaka kotiya data-toggle="modal"
na élément ya contrôleur na data-target="#foo"
to href="#foo"
oyo ekokani na id ya élément modal, mpe tango o cliqué, eko lancer modal na yo.
Lisusu, mpo na kobakisa ba options na instance modal na yo, kotia yango kaka lokola ba attributs ya ba données ya kobakisa soit na élément ya contrôle soit na marquage modal yango moko.
- <a class = "btn" data-toggle = "modal" href = "#Modal na ngai" > Modale ya kobanda </a>
- <div classe = "bombami ya mode" id = "moda na ngai" >
- <div class = "motó ya-modal" >
- < lolenge ya bouton = "bouton" classe = "kokanga" data-dismiss = "modal" > × </bouton>
- <h3> Motó ya likambo ya modɛlɛ </h3>
- </div>
- <div classe = "nzoto-modale" >
- <p> Nzoto moko ya malamu... </p>
- </div>
- <div class = "modali-moda ya nse ya lokasa" >
- <a href = "#" classe = "btn" bolongolami ya ba données = "modal" > Bokanga </a>
- <a href = "#" class = "btn btn-primary" > Bomba mbongwana </a>
- </div>
- </div>
.fade
classe na
.modal
élément (tala démonstration mpo na komona oyo na action) mpe kotia bootstrap-transition.js.
Active contenus na yo lokola modal. Andimi ba options moko ya option object
.
- $ ( '#Modal na ngai' ). modal ({
- clavier : lokuta
- }) .
Manuellement ebalukaka modal moko.
- $ ( '#Modal na ngai' ). modal ( 'kobongola' ) .
Manuellement efungolaka modal moko.
- $ ( '#Modal na ngai' ). modal ( 'lakisa' ) .
Manuellement ebombaka modal moko.
- $ ( '#Modal na ngai' ). modal ( 'bomba' ) .
Classe modal ya Bootstrap e exposer mua ba événements pona ko crochet na fonctionnalité modal.
Likambo | Ndimbola |
---|---|
kolakisa | Evenement oyo ezo beta mbala moko tango show méthode ya instance ebengami. |
oyo emonisami | Evenement oyo ezo beta tango modal esalemi visible na usager (ekozela ba transitions ya css esila). |
kobombana | Evenement oyo ezo beta mbala moko tango hide méthode ya instance ebengami. |
ya kobombana | Evenement oyo ezo beta tango modal esili kobombama na mosaleli (ekozela ba transitions ya css esila). |
- $ ( '#Modal na ngai' ). na ( 'ebombami' , mosala () {
- // sala eloko moko...
- }) .
Bakisa ba menu ya kokita na pene na eloko nyonso na Bootstrap na plugin oyo ya pete. Bootstrap ezali na lisungi ya menu ya kokita mobimba na na navbar, ba onglets, mpe ba pilili.
Télécharger fichierBo finga na ba liens nav oyo ezali kokita na navbar mpe ba pilili oyo ezali awa na nse mpo na komeka ba dropdowns.
Benga ba dropdowns na nzela ya javascript:
- $ ( '.kokita-kobalusama' ). oyo ezali kokita () .
Pona kobakisa noki fonctionnalité déroulante na élément nionso bakisa kaka data-toggle="dropdown"
pe dropdown nionso ya bootstrap valide ekozala automatiquement activé.
data-target="#fat"
to
href="#fat"
.
- <ul classe = "nav nav-pilili" >
- <li class = "active" ><a href = "#" > Lien ya mbala na mbala </a></li>
- <li classe = "kokita" id = "menu1" >
- <a class = "kobongola-kokita" data-toggle = "kokita" href = "#menu1" >
- Kokita ya nse
- <b kelasi = "caret" ></b>
- </a>
- <ul class = "menu ya kokita" >
- <li><a href = "#" > Mosala </a></li>
- <li><a href = "#" > Mosala mosusu </a></li>
- <li><a href = "#" > Eloko mosusu awa </a></li>
- <li kelasi = "mokabola" </li>
- <li><a href = "#" > Lien oyo ekabwani </a></li>
- </ul>
- </li>
- ...
- </ul>
Mpo na kobatela ba URL ndenge moko, salelá data-target
attribut na esika ya href="#"
.
- <ul classe = "nav nav-pilili" >
- <li classe = "esika ya kokita" >
- <a class = "kobanda-kokita" data-toggle = "kokita" data-target = "#" href = "nzela/na/lokasa.html" >
- Kokita ya nse
- <b kelasi = "caret" ></b>
- </a>
- <ul class = "menu ya kokita" >
- ...
- </ul>
- </li>
- </ul>
Api programatique mpo na ko activer ba menu mpo na navbar to navigation tabbed donnée.
Plugin ScrollSpy ezali mpo na kosala mikolo oyo automatiquement ba cibles nav na kotalela position ya défilement.
Télécharger fichierSalá défilement na esika oyo ezali awa na nse mpe talá mise à jour ya navigation. Ba sous-éléments oyo ezali kokita ekozala mpe na elembo. Meká yango!
Leggings ya publicité keytar, brunch id art fête dolor labore. Pitchfork yr enim lo-fi avant ba teka qui. Tumblr ferme-à-mesa vélo droits ezala nini. Anim keffiyeh carles cardigan na mokili ya lelo. Velit seitan kiosque ya ba photos ya mcsweeney 3 loup sanza irure. Cosby chandail lomo jean short, williamsburg hoodie minim qui mbala mosusu oyoki bango te et cardigan fonds de fidélité culpa biodiesel wes anderson esthétique. Nihil tatoué accusamus, cred ironie biodiesel keffiyeh artisan ullamco consequat.
Veniam marfa moustache patin, adipisicing fugiat velit mandefu ya fourchette. Freegan mandefu aliqua cupidatat vero ya mcsweeney. Cupidatat minei loko nisi, ea helvetica nulla carles. Tatoué cosby chandail camion ya biloko ya kolia, mcsweeney ya quis non freegan vinyl. Lo-fi wes anderson +1 na nzoto ya moto. Carles exercice non esthétique quis gentrifier. Brooklyn adipisicing bière ya maboko vice keytar deserunt.
Occaecat commodo oyo ezali na biloko ya kolya. Fap artisanat bière deserunt skateboard ea. Lomo vélo droits adipisicing banh mi, velit ea sunt niveau prochain locavore café d'origine unique na magna veniam. Vinyle id ya vie ya likolo, echo parc consequat quis aliquip banh mi fourchette. Vero VHS est ya kopanzana. Consectetur nisi bricolage minim sac de messagerie. Cred ex na, durable 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 sac ya messenger marfa nini delectus camion ya biloko ya kolia. Sapiente synth id oyo ekanisami. Locavore sed helvetica cliche ironie, ba mbwa ya nkake oyo mbala mosusu oyoká bango te consequat hoodie sans gluten lo-fi fap aliquip. Labore elit placeat avant ba teka, terry richardson proident brunch nesciunt quis cosby chandail pariatur keffiyeh ut helvetica artisan. Cardigan bière artisanale seitan velit prêt. VHS chambray laboris ya ntango mokuse. Anim mollit minim commodo ullamco ba mbwa ya nkake.
Benga scrollspy na nzela ya javascript:
- $ ( '#navbar' ). scrollspy () .
Pona kobakisa facilement comportement scrollspy na navigation na yo ya topbar, bakisa kaka data-spy="scroll"
na élément oyo olingi o espionner (mingi mingi oyo ekozala nzoto).
- <nzoto data-spy = "kosala défilement" > ... </nzoto>
<a href="#home">home</a>
esengeli kokokana na eloko moko oyo ezali na dom lokola
<div id="home"></div>
.
Ntango ozali kosalela scrollspy elongo na kobakisa to kolongola biloko na DOM, ekosɛnga obenga lolenge ya kozongisa sika lokola boye:
- $ ( '[espion-données="kosala défilement"]' ). moko na moko ( mosala () { .
- var $spy = $ ( oyo ). scrollspy ( 'kozongisa sika' ) .
- });
Nkombo | lolenge | mbeba | ndimbola |
---|---|---|---|
offset ya kosala | nimero | 10 | Ba pixels ya ko offset depuis likolo tango ya ko calculer position ya défilement. |
Likambo | Ndimbola |
---|---|
kosala mosala | Evenement oyo ezo beta tango nionso eloko ya sika ekomi activé na scrollspy. |
Plugin oyo ebakisi fonctionnalité ya tab na pill ya mbangu, dynamique pona ko transitionner na nzela ya contenus local.
Télécharger fichierFiná na ba onglets oyo ezali awa na nse mpo na kobongola kati na ba panneaux oyo ebombami, ata na nzela ya ba menu oyo ezali kokita.
Denim cru mbala mosusu oyoki bango te ba jean shorts Austin. Nesciunt tofu stumptown aliqua, bopeto ya masta ya synth rétro. Cliché ya moustache tempor, williamsburg carles helvetica ya vegan. Reprehenderit boucher rétro keffiyeh synth ya kokanga ndoto. Pull ya cosby eu banh mi, qui irure terry richardson ex calmar. Aliquip placeat salvia cillum na iphone. Seitan aliquip quis cardigan bilamba ya américain, boucher 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.
Fonds de confiance seitan imprimerie, keytar brut denim keffiyeh etsy fête d'art avant ba teka masta nettoyer calmar sans gluten scenester freegan chandail cosby. Fanny pack portland seitan DIY, fête d'art locavore loup cliche haute vie écho parc Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi avant ba teka chandail cosby VHS viral locavore ferme-à-mesa. Lomo loup viral, moustache prêt ba mbwa ya nkake keffiyeh bière artisanale marfa éthique. Lobo salvia freegan, sartorial keffiyeh parc écho vegan.
Activer ba onglets tabbables na nzela ya javascript (onglet moko na moko esengeli ko activer yango moko):
- $ ( '#Tab na ngai a' ). finá ( mosala ( e ) { .
- e . kopekisaDefault ();
- $ ( oyo ). tab ( 'lakisa' );
- }) .
Okoki ko activer ba onglets moko moko na ba façons ebele:
- $ ( '#Tab na ngai a[href="#profil"]' ). tab ( 'lakisa' ); // Pona tab na kombo
- $ ( '#Tab na ngai a:ya liboso' ). tab ( 'lakisa' ); // Pona tab ya liboso
- $ ( '#Tab na ngai a:ya nsuka' ). tab ( 'lakisa' ); // Pona tab ya suka
- $ ( '#Tab na ngai li:eq(2) a' ). tab ( 'lakisa' ); // Pona tab ya misato (0-indexé)
Okoki ko activer navigation ya onglet to ya pilili sans kokoma ata javascript moko te na ko préciser kaka data-toggle="tab"
to data-toggle="pill"
na élément moko. Kobakisa ba classes mpe na onglet nav
ekosalela styling ya onglet bootstrap.nav-tabs
ul
- <ul kelasi = "nav nav-tabs" >
- <li><a href = "#ndako" data-toggle = "tab" > Ndako </a></li>
- <li><a href = "#profil" data-toggle = "onglet" > Profil </a></li>
- <li><a href = "#messages" data-toggle = "tab" > Ba sango </a></li>
- <li><a href = "#bobongisi" data-toggle = "tab" > Bobongisi </a></li>
- </ul>
Ezali ko activer élément ya onglet na conteneur ya contenus. Onglet esengeli kozala na soit a soit data-target
un href
ciblant node ya conteneur na DOM.
- <ul classe = "nav nav-tabs" id = "Onglet na ngai" >
- <li class = "active" ><a href = "#ndako" > Ndako </a></li>
- <li><a href = "#profil" > Profil </a></li>
- <li><a href = "#messages" > Ba messages </a></li>
- <li><a href = "#bobongisi" > Bobongisi </a></li>
- </ul>
- <div class = "makambo ya tab" >
- <div class = "tab-pane ezali kosala" id = "ndako" > ... </div>
- <div class = "tab-pane" id = "profil" > ... </div>
- <div class = "tab-pane" id = "ba messages" > ... </div>
- <div class = "tab-pane" id = "ba paramètres" > ... </div>
- </div>
- <script>
- $ ( mosala () { .
- $ ( '#Tab na ngai a:ya nsuka' ). tab ( 'lakisa' );
- }) .
- </script>
Likambo | Ndimbola |
---|---|
kolakisa | Evenement oyo ezo beta na tab show, mais avant onglet ya sika elakisama. Salelá event.target mpe mpo na event.relatedTarget ko cibler onglet active mpe onglet active ya kala (soki ezali) respectivement. |
oyo emonisami | Evenement oyo ezo beta na tab show sima ya tab moko elakisama. Salelá event.target mpe mpo na event.relatedTarget ko cibler onglet active mpe onglet active ya kala (soki ezali) respectivement. |
- $ ( 'a[kobongola-ba-donnée="tab"]' ). na ( 'elakisami' , mosala ( e ) {
- e . cible // onglet activé
- e . relatedTarget // onglet ya kala
- }) .
Inspiré na plugin ya malamu mpenza ya jQuery.tipsy oyo ekomami na Jason Frame; Ba toli ya bisaleli ezali version ya sika, oyo etie motema na bilili te, esalela css3 mpo na ba animations, mpe ba data-attributs mpo na kobomba titre ya esika.
Télécharger fichierBotia maboko na ba liens oyo ezali awa na se mpo na komona ba toli ya bisaleli:
Pantalon serré niveau prochain keffiyeh probablement oyoki bango te. Photo cabine mandefu brut denim tipskrit sac messenger vegan stumptown. Ferme-à-mesa seitan, mcsweeney ya fixie durable quinoa 8-bit bilamba ya américain bazali na terry richardson vinyl chambray. Mandefu stumptown, cardigans banh mi lomo ba mbwa ya nkake. Tofu biodiesel williamsburg marfa, minei loko mcsweeney ya kosukola chambray vegan. Un vraiment artisan ironique quelque soit keytar , scenester ferme-à-mesa banksy Austin twitter manche freegan cred cru denim café d'origine unique viral.
Déclenchez tooltip na nzela ya javascript:
- $ ( '#ndakisa' ). tooltip ( ba options ) .
Nkombo | lolenge | mbeba | ndimbola |
---|---|---|---|
animation ya kosala | boolean | ya solo | kosalela transition ya css fade na tooltip |
esika ya kotya yango | molongo|mosala | 'likolo' | ndenge nini ko positionner tooltip - likolo | na nse | na gauche | malamu |
moponi | shene | lokuta | Soki moponi epesami, biloko ya tooltip ekopesama na ba cibles oyo elakisami. |
titre | molongo ya molongo | mosala | '' . | motuya ya titre ya liboso soki tag `title` ezali te |
kobandisa | shene | 'kosala hover'. | ndenge nini tooltip e déclenché - hover | focus | mokanda |
kozelisa | motango | moto ya likambo | 0. | retard ya kolakisa pe kobomba tooltip (ms) - etali te type ya déclencheur manuel Soki nimero moko epesami, retard esalemi na nyonso mibale kobomba/lakisa Bokeli ya eloko ezali: |
Mpo na bantina ya mosala, Tooltip mpe Popover data-apis ezali opt in. Soki olingi kosalela yango, lakisa kaka option ya moponi.
- <a href = "#" rel = "toli ya bisaleli" title = "toli ya bisaleli ya yambo" > kobalusa likolo na ngai </a>
Ezali kokangisa mosaleli ya tooltip na liboke ya biloko.
Ezali kobimisa tooltip ya élément moko.
- $ ( '#elemento' ). tooltip ( 'lakisa' ) .
Ebombaka toli ya bisaleli ya eleman moko.
- $ ( '#elemento' ). tooltip ( 'bomba' ) .
Ezali kobongola toggle ya tooltip ya élément moko.
- $ ( '#elemento' ). tooltip ( 'kobongola' ) .
Bakisa ba superpositions ya mike ya contenus, lokola oyo ezali na iPad, na élément nionso pona ko loger ba informations secondaires.
* Esengi ete Tooltip ezala na kati
Télécharger fichierBotia loboko likolo ya bouton mpo na ko déclencher popover.
Activer ba popovers na nzela ya javascript:
- $ ( '#ndakisa' ). popover ( ba options ) .
Nkombo | lolenge | mbeba | ndimbola |
---|---|---|---|
animation ya kosala | boolean | ya solo | kosalela transition ya css fade na tooltip |
esika ya kotya yango | molongo|mosala | 'malamu' | ndenge nini ko positionner popover - likolo | na nse | na gauche | malamu |
moponi | shene | lokuta | soki moponi epesami, biloko ya tooltip ekopesama na ba cibles oyo elakisami |
kobandisa | shene | 'kosala hover'. | ndenge nini tooltip e déclenché - hover | focus | mokanda |
titre | molongo ya molongo | mosala | '' . | motuya ya titre ya liboso soki attribut `title` ezali te |
makambo eza na kati | molongo ya molongo | mosala | '' . | motuya ya makambo ya liboso soki attribut `data-content` ezali te |
kozelisa | motango | moto ya likambo | 0. | retard ya kolakisa pe kobomba popover (ms) - etali te type ya déclencheur manuel Soki nimero moko epesami, retard esalemi na nyonso mibale kobomba/lakisa Bokeli ya eloko ezali: |
Mpo na bantina ya mosala, Tooltip mpe Popover data-apis ezali opt in. Soki olingi kosalela yango, lakisa kaka option ya moponi.
Initialise ba popovers pona collection ya élément.
Emonisaka popover moko ya ba éléments.
- $ ( '#elemento' ). popover ( 'elakisaka' ) .
Ebombaka popover moko ya ba éléments.
- $ ( '#elemento' ). popover ( 'bomba' ) .
Toggles an ba éléments popover.
- $ ( '#elemento' ). popover ( 'kobongola' ) .
Plugin ya alerte ezali classe moko ya moke mpo na kobakisa fonctionnalité ya proche na ba alertes.
KozwaPlugin ya ba alertes esalaka na ba messages ya alerte ya mbala na mbala, mpe ba messages ya ko bloquer.
Bobongola oyo mpe oyo mpe meká lisusu. Duis mollis, est non commodo luctus, nisi erat ligula ya porte, eget lacinia odio sem nec elit. Cras mattis consectetur purus efandaka na fermentum.
Activer démission ya alerte na nzela ya javascript:
- $ ( ".kebisi" ). kokebisa () .
Bakisa kaka data-dismiss="alert"
na bouton na yo ya kokanga mpo na kopesa automatiquement fonctionnalité ya kokanga alerte.
- <a classe = "kokanga" data-dismiss = "kebisi" href = "#" > &ntango; </a>
Enveloppe ba alertes nionso na fonctionnalité ya proche. Pona kozala na ba alertes na yo animation libanda tango ekangami, sala que bazala na classe ya .fade
pe .in
déjà appliqué na bango.
Ekangaka alerte moko.
- $ ( ".kebisi" ). alerte ( 'kokanga' ) .
Classe ya alerte ya Bootstrap e exposer mua ba événements pona ko crochet na fonctionnalité ya alerte.
Likambo | Ndimbola |
---|---|
kokanga | Evenement oyo ezo beta mbala moko tango close méthode ya instance ebengami. |
ekangami | Evenement oyo ezo beta tango alerte ekangami (ekozela ba transitions ya css esila). |
- $ ( '#kebisi-na ngai' ). bind ( 'ekangama' , mosala () { .
- // sala eloko moko...
- }) .
Bozua ba styles ya base na soutien flexible pona ba composants collapsibles lokola ba accordions na navigation.
Télécharger fichier* Esengi ete plugin ya Transitions ezala na kati.
Na kosalelaka plugin ya collapse, totongaki widget ya style ya accordéon ya pete:
Bofungola na nzela ya javascript:
- $ ( ".kokwea" ). kokwea () .
Nkombo | lolenge | mbeba | ndimbola |
---|---|---|---|
moboti | moponi | lokuta | Soki selecteur alors ba éléments nionso collapsible na se ya parent oyo elakisami ekokangama tango eloko oyo collapsible elakisami. (ekokani na bizaleli ya bonkɔkɔ ya accordéon) |
kobongola makambo | boolean | ya solo | Ebalusaka élément collapsible na invocation |
Bakisa kaka data-toggle="collapse"
na data-target
élément moko na pona ko assigner automatiquement contrôle ya élément collapsible. Attribut data-target
endimi selecteur ya css mpo na kosalela collapse na yango. Bozala sûr ya kobakisa classe collapse
na élément collapsible. Soki olingi ete efungwama na ndenge ya liboso, bakisá kelasi ya kobakisa in
.
- <bouton classe = "btn btn-danger" data-toggle = "kokwea" ba données-cible = "#demo" >
- simple oyo ekoki kokangama
- </bouton>
- <div id = "demo" classe = "kokwea na" > ... </div>
data-parent="#selector"
. Tala démonstration po omona likambo oyo na action.
Active contenus na yo lokola élément collapsible. Andimi ba options moko ya option object
.
- $ ( '#na ngaiEkoki kokangama' ). kokwea ({
- toggle : lokuta
- }) .
Ezali kobongola eloko oyo ekoki kokangama mpo na kolakisa to kobombama.
Ezali kolakisa eleman moko oyo ekoki kokangama.
Ebombaka eloko moko oyo ekoki kokangama.
Classe ya collapse ya Bootstrap e exposer mua ba événements pona ko crochet na fonctionnalité ya collapse.
Likambo | Ndimbola |
---|---|
kolakisa | Evenement oyo ezo beta mbala moko tango show méthode ya instance ebengami. |
oyo emonisami | Evenement oyo ezo beta tango élément ya collapse esalemi visible na usager (ekozela ba transitions ya css esila). |
kobombana | Evenement oyo ebetamaka mbala moko tango hide méthode ebengami. |
ya kobombana | Evenement oyo ezo beta tango élément ya collapse ebombami na mosaleli (ekozela ba transitions ya css esila). |
- $ ( '#na ngaiEkoki kokangama' ). na ( 'ebombami' , mosala () {
- // sala eloko moko...
- }) .
Plugin moko ya générique mpo na kosala cycle na nzela ya ba éléments. Moto moko ya esengo.
Télécharger fichierTalá diaporama oyo ezali awa na nse.
Benga na nzela ya javascript:
- $ ( '.carousel' ). carrousel () .
Nkombo | lolenge | mbeba | ndimbola |
---|---|---|---|
intervalle ya kosala | nimero | 5000 ya bato | Motango ya ntango oyo esengeli kozongisa nsima kati na kotambola na velo na eloko moko na ndenge ya automatique. Soki lokuta, carrousel ekosala cycle automatiquement te. |
kopema | shene | "kosala hover". | Pause na cyclisme ya carrousel na mouseenter mpe azongeli cyclisme ya carousel na mouseleave. |
Ba attributs ya ba données esalemaka pona ba conrols ya liboso pe ya sima. Tala ndakisa ya marquage oyo ezali awa na nse.
- <div id = "Carousel na ngai" classe = "diapositive ya carrousel" >
- <!-- Biloko ya carousel -->
- <div class = "carousel-ya kati" >
- <div class = "eloko ya mosala" > ... </div>
- <div kelasi = "eloko" > ... </div>
- <div kelasi = "eloko" > ... </div>
- </div>
- <!-- Carrousel nav -->
- <a class = "carousel-contrôle gauche" href = "#carousel na ngai" data-slide = "liboso" > ‹ </a>
- <a class = "droit ya contrôle-carousel" href = "#Carousel na ngai" data-slide = "oyo elandi" > › </a>
- </div>
Initialiser carrousel na options optionnelles object
mpe abandi ko cycler na nzela ya biloko.
- $ ( '.carousel' ). carrousel ({
- intervalle : 2000. Ezali ndenge nini?
- }) .
Ezali kosala cycle na kati ya biloko ya carrousel kobanda na lobɔkɔ ya mwasi tii na lobɔkɔ ya mobali.
Epekisaka carrousel ekende na velo na nzela ya biloko.
Ezali kosala cycle ya carousel na cadre moko boye (0 basé, ndenge moko na array).
Ba cycles na eloko oyo eleki.
Ezali kosala ba cycles tii na eloko oyo elandi.
Classe ya carrousel ya Bootstrap e exposer deux événements pona ko crochet na fonctionnalité ya carrousel.
Likambo | Ndimbola |
---|---|
diapositive | Evenement oyo ezo beta mbala moko tango slide méthode ya instance ezo invoquer. |
ekɔtaki na nse | Evenement oyo ebetamaka tango carrousel esili kosala transition na yango ya diapositive. |
Plugin ya moboko, oyo ebakisami na pete mpo na kosala nokinoki ba typeaheads ya elegan na bokoti ya makomi ya formulaire nyonso.
Télécharger fichierBandá kokoma na esika oyo ezali awa na nse mpo na kolakisa ba résultats ya typeahead.
Benga typeahead na nzela ya javascript:
- $ ( '.kokoma liboso' ). kokoma liboso () .
Nkombo | lolenge | mbeba | ndimbola |
---|---|---|---|
esika | array ya biloko | [ ] . | Source ya ba données ya kotuna contre. |
biloko | nimero | 8 | Max nombre ya biloko oyo esengeli kolakisa na dropdown. |
mosali ya boyokani | mosala | insensible na ba lettres minene | Méthode oyo basalelaka pona koyeba soki query moko ekokani na eloko moko. Andimi argument moko, oyo item contre oyo esengeli komeka query. Kokota na motuna ya lelo na this.query . Zongisa boolean true soki requête ezali match. |
mobongisi-nzela | mosala | boyokani ya sikisiki, oyo ezali na ba lettres minene te, oyo ezali na ba lettres minene te |
Méthode oyo basalelaka pona ko trier ba résultats autocomplètes. Andimi argument moko items mpe ezali na portée ya instance ya typeahead. Bosala référence na motuna ya lelo na this.query . |
eloko oyo emonisaka makambo mingi | mosala | ezo lakisa ba matchs nionso ya défaut | Méthode oyo basalelaka pona ko souligner ba résultats autocomplètes. Andimi argument moko item mpe ezali na portée ya instance ya typeahead. Esengeli kozongisa html. |
Bakisa ba attributs ya ba données pona ko enregistrer élément na fonctionnalité typeahead.
- < lolenge ya bokoti = "mokomi" data-provide = "typeahead" >
Ebandisaka entrée na typeahead.