Olukalala lw'ekibinja
Ebibinja by’olukalala kitundu ekikyukakyuka era eky’amaanyi eky’okulaga omuddirirwa gw’ebirimu. Kyuusa era ozigaziye okuwagira kumpi ebirimu byonna ebiri munda.
Ekibinja ky’olukalala ekisinga obukulu lwe lukalala olutali lutegekeddwa nga lulimu ebintu by’olukalala n’ebika ebituufu. Zimba ku kyo n'eby'okulonda ebiddako, oba ne CSS yo nga bwe kyetaagisa.
- Cras justo odio nga bwe kiri
- Dapibus ac ebikozesebwa mu
- Morbi leo ekika kya risus
- Porta ac consectetur eky’oku ntikko
- Ekibumbe ekiyitibwa Vestibulum ku eros
<ul class="list-group">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
Okwongera .active
ku a .list-group-item
okulaga okulonda okukola okuliwo kati.
- Cras justo odio nga bwe kiri
- Dapibus ac ebikozesebwa mu
- Morbi leo ekika kya risus
- Porta ac consectetur eky’oku ntikko
- Ekibumbe ekiyitibwa Vestibulum ku eros
<ul class="list-group">
<li class="list-group-item active">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
Yongera .disabled
ku a .list-group-item
okulabika ng’eremeddwa . Weetegereze nti ebintu ebimu ebirina .disabled
nabyo bijja kwetaaga JavaScript eya bulijjo okulemesa mu bujjuvu ebibaddewo byabwe eby'okunyiga (okugeza, enkolagana).
- Cras justo odio nga bwe kiri
- Dapibus ac ebikozesebwa mu
- Morbi leo ekika kya risus
- Porta ac consectetur eky’oku ntikko
- Ekibumbe ekiyitibwa Vestibulum ku eros
<ul class="list-group">
<li class="list-group-item disabled">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
Kozesa <a>
s oba <button>
s okukola ebintu by'ekibiina ky'olukalala ebisobola okukolebwa nga biriko embeera za hover, eziremeseddwa, n'ezikola ng'ogattako .list-group-item-action
. Twawula bino pseudo-classes okukakasa nti ebibinja by’olukalala ebikoleddwa mu bintu ebitali bikwatagana (nga <li>
s oba <div>
s) tebiwa click oba tap affordance.
Kakasa nti tokozesa .btn
kiraasi za mutindo wano .
<div class="list-group">
<a href="#" class="list-group-item list-group-item-action active">
Cras justo odio
</a>
<a href="#" class="list-group-item list-group-item-action">Dapibus ac facilisis in</a>
<a href="#" class="list-group-item list-group-item-action">Morbi leo risus</a>
<a href="#" class="list-group-item list-group-item-action">Porta ac consectetur ac</a>
<a href="#" class="list-group-item list-group-item-action disabled">Vestibulum at eros</a>
</div>
Nga olina <button>
s, osobola n’okukozesa disabled
ekintu mu kifo kya .disabled
kiraasi. Eky'ennaku, <a>
s teziwagira attribute eremeddwa.
<div class="list-group">
<button type="button" class="list-group-item list-group-item-action active">
Cras justo odio
</button>
<button type="button" class="list-group-item list-group-item-action">Dapibus ac facilisis in</button>
<button type="button" class="list-group-item list-group-item-action">Morbi leo risus</button>
<button type="button" class="list-group-item list-group-item-action">Porta ac consectetur ac</button>
<button type="button" class="list-group-item list-group-item-action" disabled>Vestibulum at eros</button>
</div>
Okwongerako .list-group-flush
okuggyawo ensalosalo ezimu n'enkoona ezeetooloovu okulaga ebintu by'ekibinja ky'olukalala okuva ku mbiriizi mu kibya ekizadde (okugeza, kaadi).
- Cras justo odio nga bwe kiri
- Dapibus ac ebikozesebwa mu
- Morbi leo ekika kya risus
- Porta ac consectetur eky’oku ntikko
- Ekibumbe ekiyitibwa Vestibulum ku eros
<ul class="list-group list-group-flush">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
Kozesa kiraasi ezikwata ku mbeera okuwandiika sitayiro y’ebintu ebirina embeera y’emabega ne langi.
- Dapibus ac ebikozesebwa mu
- Kino kye kintu ekikulu eky'ekibiina ky'olukalala
- Kino kye kintu eky'ekibiina eky'okubiri eky'olukalala
- Kino kye kintu ky'ekibiina ky'olukalala lw'obuwanguzi
- Kino kintu kya kibiina ky’olukalala lw’akabi
- Kino kye kintu ky'ekibiina ky'olukalala lw'okulabula
- Kino kye kintu ky'ekibiina ky'olukalala lwa info
- Kino kye kintu ky'ekibiina ky'olukalala lw'ekitangaala
- Kino kintu kya kibinja ky'olukalala oluddugavu
<ul class="list-group">
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item list-group-item-primary">This is a primary list group item</li>
<li class="list-group-item list-group-item-secondary">This is a secondary list group item</li>
<li class="list-group-item list-group-item-success">This is a success list group item</li>
<li class="list-group-item list-group-item-danger">This is a danger list group item</li>
<li class="list-group-item list-group-item-warning">This is a warning list group item</li>
<li class="list-group-item list-group-item-info">This is a info list group item</li>
<li class="list-group-item list-group-item-light">This is a light list group item</li>
<li class="list-group-item list-group-item-dark">This is a dark list group item</li>
</ul>
Ebisulo ebikwata ku mbeera nabyo bikola ne .list-group-item-action
. Weetegereze okugattako emisono gya hover wano egitaliiwo mu kyokulabirako ekyayita. Era ewagirwa .active
gavumenti; kikozese okulaga okulonda okukola ku kintu ky'ekibiina ky'olukalala lw'embeera.
<div class="list-group">
<a href="#" class="list-group-item list-group-item-action">Dapibus ac facilisis in</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-primary">This is a primary list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-secondary">This is a secondary list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-success">This is a success list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-danger">This is a danger list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-warning">This is a warning list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-info">This is a info list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-light">This is a light list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-dark">This is a dark list group item</a>
</div>
Okutuusa amakulu mu tekinologiya ayamba
Okukozesa langi okwongera amakulu kiwa ekiraga ekirabika kyokka, ekitajja kutuusibwa eri abakozesa tekinologiya ayamba – gamba ng’ebisoma ku ssirini. Kakasa nti amawulire agalagirwa langi oba geeyoleka okuva mu birimu byennyini (okugeza ekiwandiiko ekirabika), oba gateekebwamu okuyita mu ngeri endala, gamba ng’ebiwandiiko ebirala ebikwekebwa ne .sr-only
kiraasi.
Yongera badge ku kintu kyonna eky'ekibinja ky'olukalala okulaga okubala okutasomiddwa, emirimu, n'ebirala ng'oyambibwako ebimu ku bikozesebwa .
- Cras justo odio nga bwe kiri14. 14
- Dapibus ac ebikozesebwa mu2.
- Morbi leo ekika kya risus1.
<ul class="list-group">
<li class="list-group-item d-flex justify-content-between align-items-center">
Cras justo odio
<span class="badge badge-primary badge-pill">14</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
Dapibus ac facilisis in
<span class="badge badge-primary badge-pill">2</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
Morbi leo risus
<span class="badge badge-primary badge-pill">1</span>
</li>
</ul>
Okwongerako kumpi HTML yonna munda, ne ku bibinja by'olukalala ebiyungiddwa nga ekyo wansi, ng'oyambibwako flexbox utilities .
Laga omutwe gw’ekintu ky’ekibinja
Ennaku 3 eziyiseDonec id elit etali ya mi porta gravida ku eget metus. Ebimera ebiyitibwa Maecenas sed diam bivaamu ebimera ebiyitibwa risus varius blandit.
Donec id elit abatali ba mi porta.Laga omutwe gw’ekintu ky’ekibinja
Ennaku 3 eziyiseDonec id elit etali ya mi porta gravida ku eget metus. Ebimera ebiyitibwa Maecenas sed diam bivaamu ebimera ebiyitibwa risus varius blandit.
Donec id elit abatali ba mi porta.Laga omutwe gw’ekintu ky’ekibinja
Ennaku 3 eziyiseDonec id elit etali ya mi porta gravida ku eget metus. Ebimera ebiyitibwa Maecenas sed diam bivaamu ebimera ebiyitibwa risus varius blandit.
Donec id elit abatali ba mi porta.<div class="list-group">
<a href="#" class="list-group-item list-group-item-action flex-column align-items-start active">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">List group item heading</h5>
<small>3 days ago</small>
</div>
<p class="mb-1">Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p>
<small>Donec id elit non mi porta.</small>
</a>
<a href="#" class="list-group-item list-group-item-action flex-column align-items-start">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">List group item heading</h5>
<small class="text-muted">3 days ago</small>
</div>
<p class="mb-1">Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p>
<small class="text-muted">Donec id elit non mi porta.</small>
</a>
<a href="#" class="list-group-item list-group-item-action flex-column align-items-start">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">List group item heading</h5>
<small class="text-muted">3 days ago</small>
</div>
<p class="mb-1">Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p>
<small class="text-muted">Donec id elit non mi porta.</small>
</a>
</div>
Kozesa tab JavaScript plugin —giteekemu kinnoomu oba okuyita mu bootstrap.js
fayiro ekunganyiziddwa —okugaziya ekibinja kyaffe eky’olukalala okukola tabbable panes z’ebirimu eby’omu kitundu.
Osobola okukola okutambulira mu kibinja ky’olukalala nga towandiise JavaScript yonna ng’omala okulaga data-toggle="list"
oba ku elementi. Kozesa bino ebikwata ku data ku .list-group-item
.
Ssobozesa ekintu ky'olukalala lwa tabbable ng'oyita mu JavaScript (buli kintu ky'olukalala kyetaaga okukozesebwa kinnoomu):
Osobola okukola ekintu ky'olukalala lw'omuntu kinnoomu mu ngeri eziwerako:
Okufuula tabs panel okuzikira mu, yongera .fade
ku buli .tab-pane
. Ekipande kya tabu ekisooka nakyo kirina okuba nga .show
kirina okufuula ebirimu ebisooka okulabika.
Ekola ekintu ky'ekintu eky'olukalala n'ekintu ekirimu. Tab erina okuba ne oba a data-target
oba an href
targeting a container node mu DOM.
Londa ekintu ky'olukalala ekiweereddwa era n'alaga ekitundu kyakyo ekikwatagana. Ekintu ekirala kyonna eky'olukalala ekyali kirondeddwa emabegako kifuuka ekitali kirondeddwa era ekitundu kyakyo ekikwatagana ne kikwekebwa. Edda eri oyo ayita nga ekitundu kya tabu tekinnalagibwa ddala (okugeza, nga shown.bs.tab
ekintu tekinnabaawo).
Nga olaga tabu empya, ebibaawo bikuba amasasi mu nsengeka eno wammanga:
hide.bs.tab
(ku tabu ekola kati)show.bs.tab
(ku kitundu ekigenda okulagibwa)hidden.bs.tab
(ku tabu ekola emabega, y’emuhide.bs.tab
n’ey’omukolo)shown.bs.tab
(ku kitundu ekipya-ekikola ekyaakalagibwa, kye kimushow.bs.tab
n'eky'omukolo)
Singa tewali tabu yali yakola dda, ebibaddewo hide.bs.tab
ne hidden.bs.tab
tebijja kugobwa.
Ekika ky’ekintu ekibaawo | Okunnyonnyola |
---|---|
okulaga.bs.tab | Ekintu kino kikuba omuliro ku tab show, naye nga tab empya tennalagibwa. Kozesa event.target ne event.relatedTarget okutunuulira tabu ekola ne tabu ekola eyasooka (bwe kiba nga kiriwo) mu kulondako. |
eragiddwa.bs.tab | Ekintu kino kikuba omuliro ku tab show oluvannyuma lwa tab okulagibwa. Kozesa event.target ne event.relatedTarget okutunuulira tabu ekola ne tabu ekola eyasooka (bwe kiba nga kiriwo) mu kulondako. |
okukweka.bs.tab | Ekintu kino kikuba omuliro nga tabu empya egenda kulagibwa (era bwe kityo tabu ekola eyasooka erina okukwekebwa). Kozesa event.target ne event.relatedTarget okutunuulira tabu ekola kati ne tabu empya egenda okukola mu bbanga ttono, mu kulondako. |
ekikwekebwa.bs.tab | Ekintu kino kikuba omuliro oluvannyuma lwa tabu empya okulagibwa (era bwe kityo tabu ekola eyasooka ekwekebwa). Kozesa event.target ne event.relatedTarget okutunuulira tabu ekola emabega ne tabu empya ekola, mu kulondako. |