Tliša dikarolo tša Bootstrap bophelong-bjale ka di-plugin tše 12 tša jQuery tša tlwaelo.
A streamlined, empa tenyetsehang, nka ka setso javascript modal plugin le feela bonyane hlokahalang tshebetso le bohlale defaults.
Oketša dimenu tša go theoga go mo e nyakilego go ba selo le ge e le sefe ka go Bootstrap ka plugin ye e bonolo. Bootstrap litšobotsi feletseng dropdown menu ya tšehetso ka ka navbar, dithepo, le lipilisi.
Šomiša scrollspy go mpshafatša ka go iketla dikgokagano ka go navbar ya gago go bontšha kgokagano ya bjale ye e šomago go ya ka maemo a go sepelasepela.
Šomiša plugin ye go dira gore dithepo le dipilisi di be le mohola kudu ka go di dumelela go fetola ka diphanephe tša dithepo tša diteng tša selegae.
A e ncha nka ka jQuery Tipsy plugin, Tooltips ha ba itšetlehile ka litšoantšo-ba sebelisa CSS3 bakeng sa ditshwantsho tse ditshwantsho le ya data-dika bakeng sa polokelo ya thaetlele ya sebakeng seo.
Oketša dikhupetšo tše nnyane tša dikagare, go swana le tšeo di lego go iPad, go elemente efe goba efe ya go apa tshedimošo ya bobedi.
* E nyaka gore Tooltips e akaretšwe
Plugin ya temošo ke sehlopha se senyenyane sa go oketša mošomo wa kgauswi go ditemošo.
Dira mo gontši ka dikonope. Taolo konope e bolela goba hlama dihlopha tša dikonope bakeng sa dikarolo tše dingwe go swana le dibara tša didirišwa.
Hwetša mekgwa ya motheo le thekgo ye e fetofetogago ya dikarolo tše di phuhlamago go swana le di-accordion le go sepelasepela.
Hlama merry-go-round ya diteng dife goba dife tšeo o nyakago go fa pontšho ya diselaete ya tirišano ya diteng.
Plugin ya motheo, yeo e katološitšwego gabonolo bakeng sa go hlama ka pela di-typeahead tša maemo ka tsenyo efe goba efe ya sengwalwa sa foromo.
Bakeng sa diphetho tše bonolo tša phetogo, akaretša bootstrap-transition.js gatee go thelela ka gare ga modals goba go fifala ditemošo.
* E hlokeha bakeng sa animatsioon ka plugins
A streamlined, empa tenyetsehang, nka ka setso javascript modal plugin le feela bonyane hlokahalang tshebetso le bohlale defaults.
Download faele yaKa tlase ke statically e filwe modal.
Mmele o tee o mobotse...
Toggle a modal ka javascript ka ho tobetsa konopo e ka tlase. E tla thelela fase gomme ya fifala ka gare go tšwa godimo ga letlakala.
Thakgola mokgwa wa demoBitsa modal ka javascript:
- $ ( '#Modal ya ka' ). modal ( dikgetho ) .
Leina | mohuta | hlokomologa | tlhalošo |
---|---|---|---|
lemorago la ka morago | boolean ya go swana | nnete | E akaretša elemente ya modal-backdrop. Ka go fapana le moo, laetša static bakeng sa backdrop yeo e sa tswalelego modal ka go klika. |
khiiboto ya | boolean ya go swana | nnete | E tswalela modal ge senotlelo sa go tšhaba se tobetšwe |
bontšha | boolean ya go swana | nnete | E bontšha modal ge e thongwa. |
O ka tsenya tirišong di-modal letlakaleng la gago gabonolo ntle le go ngwala mola o tee wa javascript. E no beakanya data-toggle="modal"
godimo ga elemente ya molaodi ka data-target="#foo"
goba href="#foo"
yeo e sepelelanago le id ya elemente ya modal, gomme ge e kgotla, e tla thoma modal ya gago.
Gape, go oketša dikgetho go mohlala wa gago wa modal, di akaretša fela bjalo ka dika tša tlaleletšo tša datha go e ka ba elemente ya taolo goba go swaya modal ka boyona.
- <a sehlopha = "btn" data-toggle = "modal" href = "#myModal" > Thoma Modal </a>
- <div sehlopha = "modal pata" id = "myModal" >
- <div sehlopha = "modal-hlooho" >
- < mohuta wa konope = "konope" sehlopha = "tswalela" data-dismiss = "modal" > × </konopo>
- <h3> Hlogo ya modale </h3>
- </div> e
- <div sehlopha = "modal-mmele" >
- <p> Mmele o tee o mobotse... </p>
- </div> e
- <div sehlopha = "modal-footer" >
- <a href = "#" sehlopha = "btn" data-dismiss = "modal" > Tswala </a>
- <a href = "#" class = "btn btn-primary" > Boloka diphetogo </a>
- </div> e
- </div> e
.fade
sehlopha go
.modal
elemente (lebelela demo go bona se ka tiro) gomme o akaretše bootstrap-transition.js.
E dira gore diteng tša gago di šome bjalo ka modal. E amogela dikgetho tša boikhethelo object
.
- $ ( '#Modal ya ka' ). modal ({ ) .
- khiiboto : maaka
- }) .
Ka seatla e fetola modal.
- $ ( '#Modal ya ka' ). modal ( 'go fetola' ) .
Ka letsoho bula e modal.
- $ ( '#Modal ya ka' ). modal ( 'bontša' ) .
Ka letsoho pata e modal.
- $ ( '#Modal ya ka' ). modal ( 'pata' ) .
Bootstrap o modal sehlopha pepesa liketsahalo tse seng kae bakeng sa hooking ka modal tshebetso.
Tiragalo | Tlhalošo |
---|---|
bontšha | Tiragalo ye e thunya ka pela ge show mokgwa wa mohlala o bitšwa. |
e bontšhitšwe | Tiragalo ye e thuntšhwa ge modal e dirilwe gore e bonagale go mosediriši (e tla emela gore diphetogo tša css di phethe). |
fihla | Tiragalo ye e thuntšhwa ka pela ge hide mokgwa wa mohlala o biditšwe. |
fihlilwe | Tiragalo ye e thuntšhwa ge modal e feditše go utollwa go tšwa go mosediriši (e tla emela gore diphetogo tša css di phethe). |
- $ ( '#Modal ya ka' ). ka ( 'e patiloeng' , mosebetsi () {
- // dira se sengwe...
- }) .
Oketša dimenu tša go theoga go mo e nyakilego go ba selo le ge e le sefe ka go Bootstrap ka plugin ye e bonolo. Bootstrap litšobotsi feletseng dropdown menu ya tšehetso ka ka navbar, dithepo, le lipilisi.
Download faele yaTobetsa godimo ga dikgokagano tša nav tša go theoga ka go navbar le dipilisi ka fase go dira diteko tša go theoga.
Bitsa di-drodown ka javascript:
- $ ( '.go theoga-go fetola' ). go theoga () .
Go oketša ka pela mošomo wa go theoga go elemente efe goba efe e no oketša data-toggle="dropdown"
gomme go theoga ga bootstrap efe goba efe ye e šomago e tla tsenywa tirišong ka go iketla.
data-target="#fat"
goba
href="#fat"
.
- <ul sehlopha = "nav nav-dipilisi" >
- <li class = "mafolofolo" ><a href = "#" > Kgokagano ya ka mehla </a></li>
- <li sehlopha = "dropdown" id = "menu1" >
- <a class = "go theoga-go fetola" data-toggle = "go theoga" href = "# menu1" >
- Dropdown ya go theoga
- <b sehlopha = "caret" </b>
- </a>
- <ul sehlopha = "thepo ya go theoga" >
- <li><a href = "#" > Kgato </a></li>
- <li><a href = "#" > Tiro e nngwe </a></li>
- <li><a href = "#" > Selo se sengwe mo </a></li>
- <li sehlopha = "karoganyo" </li>
- <li><a href = "#" > Kgokagano ye e arotšwego </a></li>
- </ul>
- </li>
- ...
- </ul>
Go boloka di-URL di sa senyega, diriša data-target
seka go e na le href="#"
.
- <ul sehlopha = "nav nav-dipilisi" >
- <li sehlopha = "dropdown" >
- <a sehlopha = "dropdown-toggle" data-toggle = "dropdown" ya data-sepheo = "#" href = "tsela / ho / leqepheng.html" >
- Dropdown ya go theoga
- <b sehlopha = "caret" </b>
- </a>
- <ul sehlopha = "thepo ya go theoga" >
- ...
- </ul>
- </li>
- </ul>
A programatic api bakeng sa go tsenya tirišong dimenu bakeng sa navbar e filwego goba go sepelasepela ka dithepo.
The ScrollSpy plugin ke bakeng sa ka tsela e iketsang ntjhafatsa nav diphetho thehiloeng scroll boemo.
Download faele yaScroll lefelo le le lego ka mo tlase gomme o lebelele mpshafatšo ya go sepelasepela. Diaetheme tša ka fasana tša go theoga di tla hlaolwa gape. E leke!
Ad leggings keytar, brunch id bonono mokga dolor labore. Pitchfork yr enim lo-fi pele ba rekisa qui. Tumblr polasa-ho-tafoleng baesekele ditokelo eng kapa eng. Anim keffiyeh carles cardigan ya go swana le yona. Velit seitan mcsweeney o photo photo photo lephephe 3 phiri ngwedi irure. Cosby jesi lomo jean shorts, williamsburg hoodie minim qui mohlomong ha ua utloa ka bona et cardigan letlole la tšepo culpa biodiesel wes anderson botsebi. Nihil tattooed accusamus, cred kgegeo biodiesel keffiyeh mosebetsi oa matsoho ullamco consequat.
Veniam marfa ditedu skateboard, adipisicing fugiat velit ditedu tša foroko ya pitchfork. Freegan ditedu aliqua cupidatat vero ya mcsweeney. Cupidatat ba bane loko nisi, ea helvetica nulla carles. Tattooed cosby jesi lijo teraka, mcsweeney o quis bao e seng freegan vinyl. Lo-fi wes anderson +1 seaparo sa go robala. Carles bao e seng botsebi boitšhidullo quis gentrify. Brooklyn adipisicing mesebetsi ea matsoho biri motlatsi keytar deserunt.
Occaecat commodo ya go swana le ya go swana le ya delectus. Fap mesebetsi ea matsoho biri deserunt skateboard ea. Lomo baesekele ditokelo adipisicing banh mi, velit ea sunt boemo bo latelang locavore e le 'ngoe-tšimoloho kofi ka magna veniam. Bophelo bo phahameng id vinyl, echo phakeng consequat quis aliquip banh mi foroko ea pitchfork. Vero VHS est go godiša. Consectetur nisi DIY bonyane mokotla wa moromiwa. Cred ex ka, tšoarellang delectus consectetur fanny pakete 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 mokotla wa moromiwa marfa eng kapa eng delectus lijo teraka. Sapiente synth id assumenda. Locavore sed helvetica cliche kgegeo, thundercats mohlomong ha ua utloa ka bona consequat hoodie gluten-free lo-fi fap aliquip. Labore elit placeat pele ba rekisa, terry richardson proident brunch nesciunt quis cosby jesi pariatur keffiyeh ut helvetica mosebetsi oa matsoho. Cardigan mesebetsi ea matsoho biri seitan readymade velit. VHS chambray laboris veniam ya nakwana. Anim mollit minima commodo ullamco dikatse tsa diaduma.
Bitsa scrollspy ka javascript:
- $ ( '# navbar' ). scrollspy () .
Go oketša gabonolo boitshwaro bja scrollspy go go sepelasepela ga gago ga topbar, oketša feela data-spy="scroll"
go elemente yeo o nyakago go e hlola (ka tlwaelo kudu se e be e tla ba mmele).
- <mmele ya data-spy = "moqolo" > ... </mmele>
<a href="#home">home</a>
swanetše go sepelelana le selo se sengwe ka dom go swana le
<div id="home"></div>
.
Ge o diriša scrollspy ka kopanelo le go tlaleletša goba go tloša dielemente go tšwa go DOM, o tla swanelwa ke go bitša mokgwa wa go hlabolla go swana le bjalo:
- $ ( '[data-spy = "phetola"]' ). e mong le e ( mosebetsi () { .
- var $ sehloela = $ ( ena ). scrollspy ( 'tlhabolla' ) .
- });
Leina | mohuta | hlokomologa | tlhalošo |
---|---|---|---|
offset | nomoro | 10. | Dipiksele go offset go tšwa godimo ge o bala boemo bja go phurolla. |
Tiragalo | Tlhalošo |
---|---|
tsenya tirišong | Tiragalo ye e a tuka neng le neng ge selo se sefsa se thoma go šoma ke scrollspy. |
Plugin ye e tlaleletša ka ka pela, ye e fetogago ya thepo le mošomo wa pilisi bakeng sa go fetoga ka dikagare tša selegae.
Download faele yaKlika dithepo tše di lego ka mo tlase go fetoša magareng ga diphensele tše di utilwego, gaešita le ka dimenu tša go theoga.
Raw denim mohlomongwe ga se wa kwa ka bona jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth mong'a hloekisa. Ditedu cliche nakwana, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh mohlapetši wa ditoro synth. Cosby jesi eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone.. Ke nyaka go nyoba nnywana ya mosadi. Seitan aliquip quis cardigan liaparo tsa american, 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.
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.
Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.
Kgontšha dithepo tša dithepo ka javascript (thepo ye nngwe le ye nngwe e swanetše go tsenywa tirišong ka botee):
- $ ( '#Tab ya ka a' ). klika ( mosebetsi ( e ) { .
- e . thibelaDefault ();
- $ ( ena ). tab ( 'bontša' );
- }) .
O ka tsenya tirišong dithepo ka botee ka ditsela tše mmalwa:
- $ ( '# Tab ya ka a [href="#profaele"]' ). tab ( 'bontša' ); // Kgetha tab ka lebitso
- $ ( '#Tab ya ka a:pele' ). tab ( 'bontša' ); // Kgetha tab ya pele
- $ ( '# Tab ya ka a: ya mafelelo' ). tab ( 'bontša' ); // Kgetha tab ya ho qetela
- $ ( '# Tab ya ka li: eq (2) a' ). tab ( 'bontša' ); // Kgetha tab ya boraro (0-indexed) .
O ka tsenya tirišong go sepelasepela ga thepo goba pilisi ntle le go ngwala javascript efe goba efe ka go fo laetša data-toggle="tab"
goba data-toggle="pill"
godimo ga elemente. Go tlaleletša ka nav
le nav-tabs
diklase go thepo go ul
tla diriša setaele sa thepo ya bootstrap.
- <ul sehlopha = "nav nav-dithepo" >
- <li><a href = "#gae" data-toggle = "thepo" > Gae </a></li>
- <li><a href = "#profaele" data-toggle = "thepo" > Profaele </a></li>
- <li><a href = "#melaetša" data-toggle = "thepo" > Melaetša </a></li>
- <li><a href = "#dipeakanyo" data-toggle = "thepo" > Dipeakanyo </a></li>
- </ul>
E tsenya tirišong elemente ya thepo le setshelo sa diteng. Tab e swanetše go ba le e ka ba a data-target
goba a go href
nepiša noutu ya setshelo ka go DOM.
- <ul sehlopha = "nav nav-dithepo" id = "Tab ya ka" >
- <li class = "mafolofolo" ><a href = "#gae" > Gae </a></li>
- <li><a href = "#profaele" > Profaele </a></li>
- <li><a href = "#melaetša" > Melaetša </a></li>
- <li><a href = "#dipeakanyo" > Dipeakanyo </a></li>
- </ul>
- <div sehlopha = "tab-diteng" >
- <div sehlopha = "thepo-lefasetere le sebetsang" id = "gae" > ... </div>
- <div sehlopha = "thepo-lefasetere" id = "profaele" > ... </div>
- <div class = "tab-pane" id = "melaetša" > ... </div>
- <div sehlopha = "tab-pane" id = "dipeakanyo" > ... </div>
- </div> e
- <sengwalwa>
- $ ( mosebetsi () { .
- $ ( '# Tab ya ka a: ya mafelelo' ). tab ( 'bontša' );
- }) .
- </script>
Tiragalo | Tlhalošo |
---|---|
bontšha | Tiragalo ye e thunya ka pontšho ya thepo, eupša pele ga ge thepo ye mpsha e bontšhitšwe. Šomiša event.target le event.relatedTarget go nepiša thepo ye e šomago le thepo ye e šomago ya peleng (ge e le gona) ka go latelelana. |
e bontšhitšwe | Tiragalo ye e thunya pontšhong ya thepo ka morago ga ge thepo e bontšhitšwe. Šomiša event.target le event.relatedTarget go nepiša thepo ye e šomago le thepo ye e šomago ya peleng (ge e le gona) ka go latelelana. |
- $ ( 'a [data-toggle = "thepo"]' ). ka ( 'bontšhitšwe' , mošomo ( e ) { .
- e . sepheo // kenya tshebetsong tab
- e . relatedTarget // thepo ya peleng
- }) .
E hlohleleditšwe ke plugin ye botse kudu ya jQuery.tipsy yeo e ngwadilwego ke Jason Frame; Dikeletšo tša didirišwa ke phetolelo ye e mpshafaditšwego, yeo e sa ithekgego ka diswantšho, e šomiša css3 bakeng sa ditshwantšho tša go phela, le dika tša datha bakeng sa polokelo ya thaetlele ya selegae.
Download faele yaBeakanya godimo ga dikgokagano tše di lego ka mo tlase go bona ditšhišinyo tša didirišwa:
Tight pants next level keffiyeh mohlomongwe ga se wa kwa ka tšona. Photo lephephe ditedu tala denim letterpress vegan moromiwa mokotla stumptown. Polase-ho-tafoleng seitan, mcsweeney o fixie tšoarellang quinoa 8-bit american liaparo na le terry richardson vinyl chambray. Ditedu stumptown, di-cardigan banh mi lomo dikatse tša diaduma. Tofu biodiesel williamsburg marfa, tse 'nè loko mcsweeney o hloekisa vegan chambray. A hlile ironic artisan eng kapa eng keytar , scenester polasi-ho-tafoleng banksy Austin twitter sebetsana freegan cred tala denim e le 'ngoe-tšimoloho kofi kokoana-hloko.
Hlohleletša keletšo ya sedirišwa ka javascript:
- $ ( '#mohlala' ). tooltip ( dikgetho ) .
Leina | mohuta | hlokomologa | tlhalošo |
---|---|---|---|
ditshwantsho tse di phelang | boolean ya go swana | nnete | diriša phetogo ya css fade go tooltip |
go bewa ga dilo | thapo|mošomo | 'godimo' | kamoo ho ka beha tooltip - holimo | tlase | le letšehali | nepagetše |
mokgethi wa go kgetha | thapo | maaka | Ge e le gore mokgethi o filwe, dilo tša keletšo ya sedirišwa di tla abelwa diphetho tše di laeditšwego. |
thaetlele | thapo ya | mošomo | '' . | boleng bja thaetlele ya go se fetoge ge e le gore leswao la `thaetlele` ga le gona |
šušumetša | thapo | 'hover'. | kamoo tooltip e hlohleletšwago ka gona - hover | go tsepamiša kgopolo | manyuale |
diega | nomoro ya | selo | 0. | go diega go bontšha le go uta keletšo ya sedirišwa (ms) - ga e šome go mohuta wa go hlohleletša ka seatla Ge e le gore nomoro e filwe, go diega go dirišwa go bobedi go uta/bontšha Sebopego sa selo ke: |
Ka mabaka a tshepedišo, Tooltip le Popover data-apis di kgetha go tsena Ge o rata go di šomiša e no laetša kgetho ya mokgethi.
- <a href = "#" rel = "keletšo ya sedirišwa" title = "keletšo ya sedirišwa ya mathomo" > bea godimo ga ka </a>
E kgomaretša sedirišwa sa go swara sedirišwa go kgoboketšo ya elemente.
E utolla keletšo ya sedirišwa ya elemente.
- $ ( '# elemente' ). tooltip ( 'bontša' ) .
E uta keletšo ya sedirišwa ya elemente.
- $ ( '# elemente' ). tooltip ( 'pata' ) .
E fetola keletšo ya sedirišwa ya elemente.
- $ ( '# elemente' ). keletšo ya sedirišwa ( 'toggle' ) .
Oketša dikhupetšo tše nnyane tša dikagare, go swana le tšeo di lego go iPad, go elemente efe goba efe ya go apa tshedimošo ya bobedi.
* E nyaka gore Tooltip e akaretšwe
Download faele yaHover godimo ga konope go hlohleletša popover.
Kgontšha di-popover ka javascript:
- $ ( '#mohlala' ). popover ( dikgetho ) .
Leina | mohuta | hlokomologa | tlhalošo |
---|---|---|---|
ditshwantsho tse di phelang | boolean ya go swana | nnete | diriša phetogo ya css fade go tooltip |
go bewa ga dilo | thapo|mošomo | 'nepagetše' | kamoo ho ka beha popover - holimo | tlase | le letšehali | nepagetše |
mokgethi wa go kgetha | thapo | maaka | ge e le gore mokgethi o filwe, dilo tša keletšo ya sedirišwa di tla abelwa diphetho tše di laeditšwego |
šušumetša | thapo | 'hover'. | kamoo tooltip e hlohleletšwago ka gona - hover | go tsepamiša kgopolo | manyuale |
thaetlele | thapo ya | mošomo | '' . | boleng bja thaetlele ya go se fetoge ge e le gore seka sa `thaetlele` ga se gona |
diteng | thapo ya | mošomo | '' . | boleng bja diteng tša go se fetoge ge e le gore seka sa `data-content` ga se gona |
diega | nomoro ya | selo | 0. | go diega go bontšha le go uta popover (ms) - ga e šome go mohuta wa go hlohleletša ka seatla Ge e le gore nomoro e filwe, go diega go dirišwa go bobedi go uta/bontšha Sebopego sa selo ke: |
Ka mabaka a tshepedišo, Tooltip le Popover data-apis di kgetha go tsena Ge o rata go di šomiša e no laetša kgetho ya mokgethi.
E thoma di-popovers bakeng sa kgoboketšo ya elemente.
E senola e elements popover.
- $ ( '# elemente' ). popover ( 'bontša' ) .
Pata e elements popover.
- $ ( '# elemente' ). popover ( 'pata' ) .
Toggles e elements popover.
- $ ( '# elemente' ). popover ( 'go fetola' ) .
Plugin ya temošo ke sehlopha se senyenyane sa go oketša mošomo wa kgauswi go ditemošo.
TaoneloutaPlugin ya ditemošo e šoma go melaetša ya temošo ya ka mehla, le melaetša ya go thibela.
Fetoša se le sela gomme o leke gape. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus e dula amet fermentum.
Kgontšha go rakwa ga temošo ka javascript:
- $ ( ".temošo" ). temošo () .
E no oketša data-dismiss="alert"
go konope ya gago ya go tswalela go fa ka go iketla mošomo wa go tswalela temošo.
- <a sehlopha = "tswalela" data-dismiss = "temošo" href = "#" > & dinako; </a>
E phuthela ditemošo ka moka ka tšhomišo ya kgauswi. Go dira gore ditemošo tša gago di phele ge di tswaletšwe, kgonthiša gore di na le .fade
le .in
sehlopha seo se šetšego se dirišitšwe go tšona.
E tswalela temošo.
- $ ( ".temošo" ). temošo ( 'tswalela' ) .
Sehlopha sa temošo sa Bootstrap se pepentšha ditiragalo tše mmalwa bakeng sa go goketša mošomong wa temošo.
Tiragalo | Tlhalošo |
---|---|
tswalela | Tiragalo ye e thunya ka pela ge close mokgwa wa mohlala o bitšwa. |
e tswaletšwe | Tiragalo ye e thuntšhwa ge temošo e tswaletšwe (e tla emela gore diphetogo tša css di phethe). |
- $ ( '#temošo ya ka' ). tlama ( 'koaloa' , mosebetsi () {
- // dira se sengwe...
- }) .
Hwetša mekgwa ya motheo le thekgo ye e fetofetogago ya dikarolo tše di phuhlamago go swana le di-accordion le go sepelasepela.
Download faele ya* E nyaka gore plugin ya Diphetogo e akaretšwe.
Ka go diriša plugin ya go phuhlama, re ile ra aga sedirišwa se bonolo sa setaele sa accordion:
Kgontšha ka javascript:
- $ ( ".e phuhlama" ). go phuhlama () .
Leina | mohuta | hlokomologa | tlhalošo |
---|---|---|---|
motswadi | mokgethi wa go kgetha | maaka | Ge e le gore mokgethi gona dielemente ka moka tše di phuhlamago ka fase ga motswadi yo a laeditšwego di tla tswalelwa ge selo se se se phuhlamago se bontšhwa. (e swanago le boitshwaro bja setšo bja accordion) . |
go fetola | boolean ya go swana | nnete | Toggles elements collapsible ka pitso |
E no tlaleletša data-toggle="collapse"
le data-target
go elemente go abela ka go iketla taolo ya elemente ye e phuhlamago. Sebopego data-target
se amogela mokgethi wa css go diriša go phuhlama go yena. Kgonthiša gore o tlaleletša sehlopha collapse
go elemente ye e phuhlamago. Ge e ba o rata gore e bulege ka go ikemela, oketša sehlopha sa tlaleletšo in
.
- < sehlopha sa konopo = "btn btn-kotsi" ya data-toggle = "ho phuhlama" ya data-sepheo = "# demo" >
- bonolo collapsible
- </konope>
- <div id = "demo" sehlopha = "phuhlama ka" > ... </div>
data-parent="#selector"
. Lebelela demo go bona se se šoma.
E dira gore diteng tša gago di šome bjalo ka elemente ye e phuhlamago. E amogela dikgetho tša boikhethelo object
.
- $ ( '# e ka phuhlamang ya ka' ). go phuhlama ({
- toggle : maaka
- }) .
E fetola elemente ye e phuhlamago go bontšhwa goba ye e utilwego.
E bontšha elemente yeo e ka phuhlamago.
Pata elemente e phuhlamang.
Sehlopha sa go phuhlama sa Bootstrap se pepentšha ditiragalo tše mmalwa tša go goketša ka mošomo wa go phuhlama.
Tiragalo | Tlhalošo |
---|---|
bontšha | Tiragalo ye e thunya ka pela ge show mokgwa wa mohlala o bitšwa. |
e bontšhitšwe | Tiragalo ye e thuntšhwa ge elemente ya go phuhlama e dirilwe gore e bonagale go modiriši (e tla emela gore diphetogo tša css di phethe). |
fihla | Tiragalo ye e thuntšhwa ka pela ge hide mokgwa o biditšwe. |
fihlilwe | Tiragalo ye e thuntšhwa ge elemente ya go phuhlama e utilwe go tšwa go modiriši (e tla emela gore diphetogo tša css di phethe). |
- $ ( '# e ka phuhlamang ya ka' ). ka ( 'e patiloeng' , mosebetsi () {
- // dira se sengwe...
- }) .
A plugin kakaretso bakeng sa paesekele ka elements. Motho wa go thabiša.
Download faele yaLebelela pontšho ya diselaete ka mo tlase.
Letsa ka javascript:
- $ ( '.kharosele' ). carousel () .
Leina | mohuta | hlokomologa | tlhalošo |
---|---|---|---|
sekgoba | nomoro | 5000 e le | Palo ya nako ya go diega magareng ga go sepela ka paesekele ka go itiragalela selo. Ge e ba e le maaka, carousel e ka se dikološe ka go iketla. |
ema nakwana | thapo | "hover" . | E khutša go sepela ka dipaesekele ga carousel go mouseenter gomme e thoma gape go sepela ka dipaesekele ga carousel go mouseleave. |
Dika tša datha di šomišwa go di-conrol tša peleng le tše di latelago. Hlahloba mohlala markup ka tlase.
- <div id = "Carousel ya ka" sehlopha = "slide ya carousel" >
- <!-- Dilo tša carousel -->
- <div sehlopha = "carousel-ka hare" >
- <div class = "ntho e sebetsang" > ... </div>
- <div sehlopha = "ntho" > ... </div>
- <div sehlopha = "ntho" > ... </div>
- </div> e
- <!-- Carousel nav -->
- <a sehlopha = "carousel-taolo e letšehali" href = "#Carousel ya ka" data-slide = "pele" > ‹ </a>
- <a sehlopha = "tokelo ya taolo ya carousel" href = "#Carousel ya ka" ya data-slide = "e latelang" > › </a>
- </div> e
Initializes carousel le dikgetho boikhethelo object
le qala baesekele ka dintho.
- $ ( '.kharosele' ). carousel ({ ) .
- sekgoba : 2000
- }) .
Didikologa ka dilo tša carousel go tloga go le letshadi go ya go le letona.
E thibela carousel go sepela ka dipaesekele ka dilo.
Cycles carousel ho foreime e itseng (0 e thehiloeng, e tšoanang le hlophisitsoeng).
Didikologo go ya go selo sa go feta.
Didikologo go ya go selo se se latelago.
Sehlopha sa carousel sa Bootstrap se pepentšha ditiragalo tše pedi tša go goketša ka mošomo wa carousel.
Tiragalo | Tlhalošo |
---|---|
selaete | Tiragalo ye e thunya ka pela ge slide mokgwa wa mohlala o bitšwa. |
a thelela | Tiragalo ye e thuntšhwa ge carousel e phethile phetogo ya yona ya diselaete. |
Plugin ya motheo, yeo e katološitšwego gabonolo bakeng sa go hlama ka pela di-typeahead tša maemo ka tsenyo efe goba efe ya sengwalwa sa foromo.
Download faele yaThoma go thaepa ka tšhemong ye e lego ka mo tlase go bontšha dipoelo tša go thaepa pele.
Bitsa typeahead ka javascript:
- $ ( '.thaepa pele' ). typeahead () .
Leina | mohuta | hlokomologa | tlhalošo |
---|---|---|---|
mothopo | hlophisitsoeng | [ ] . | Mothopo wa datha wo o swanetšego go botšiša kgahlanong le wona. |
diaetheme | nomoro | 8. | Palo ya godimo ya dilo tšeo di swanetšego go bontšhwa ka go theoga. |
matcher | mošomo | go hloka kwelobohloko ya ditlhaka tše kgolo | Mokgwa wo o šomišwago go bona ge eba potšišo e swana le selo. E amogela ngangišano e tee, item yeo e swanetšego go leka potšišo kgahlanong le yona. Fihlelela potšišo ya bjale ka this.query . Bušetša boolean true ge e le gore potšišo e le go swana. |
mohlophisi | mošomo | go swana ka go nepagala, go se na kwelobohloko ya ditlhaka tše kgolo le ditlhaka tše kgolo |
Mokgwa wo o šomišwago go hlopha dipoelo tša go tlatša ka go itiragalela. E amogela ngangišano e tee items gomme e na le sebaka sa mohlala wa typeahead. Tšhupetšo ya potšišo ya bjale ka this.query . |
se hlalositsoeng | mošomo | e gatelela dipapadi ka moka tša go se fetoge | Mokgwa wo o šomišwago go tšweletša dipoelo tša go tlatša ka go itiragalela. E amogela ngangišano e tee item gomme e na le sebaka sa mohlala wa typeahead. E swanetše go bušetša html. |
Oketša dika tša datha go ngwadiša elemente ka mošomo wa typeahead.
- < mohuta wa tsenyo = "sengwalwa" data-fana = "typeahead" >
E thoma tsenyo ka typeahead.