List group a awm
List groups hi content series tarlanna atana hmanraw tangkai leh chak tak a ni. A chhunga thu awm zawng zawng deuhthaw support turin siam danglam la, tihzauh rawh.
List group bulpui ber chu list item leh class dik tak awmna list order loh a ni. A hnuaia option awmte hmangin a chungah build la, a nih loh leh a tul angin nangmah ngeiin CSS hmangin siam rawh.
- Cras justo odio a ni
- Dapibus ac facilisis ah hian a awm a
- Morbi leo risus tih a ni
- Porta ac consectetur a ni a, a hlawhtling hle
- Vestibulum chu eros-ah a awm
<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>
Tuna active selection awm mek tarlanna turin .active
a- ah dah rawh ..list-group-item
- Cras justo odio a ni
- Dapibus ac facilisis ah hian a awm a
- Morbi leo risus tih a ni
- Porta ac consectetur a ni a, a hlawhtling hle
- Vestibulum chu eros-ah a awm
<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>
Disabled anga lang turin .disabled
a ah dah rawh . Hriat tur chu element thenkhat with te pawhin an click events (eg, links) te chu fully disable turin custom JavaScript an mamawh dawn a ni..list-group-item
.disabled
- Cras justo odio a ni
- Dapibus ac facilisis ah hian a awm a
- Morbi leo risus tih a ni
- Porta ac consectetur a ni a, a hlawhtling hle
- Vestibulum chu eros-ah a awm
<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>
<a>
s emaw s emaw <button>
hmangin actionable list group items te chu hover, disabled, leh active states te nen siam la, .list-group-item-action
. <li>
Heng pseudo-classes te hi kan then hrang a, chu chu non-interactive elements ( s emaw s emaw ang chi) atanga siam list group te <div>
hian click emaw tap emaw affordance an pek loh nan.
Hetah hian standard .btn
class te hi hmang lo turin fimkhur rawh .
<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>
s hmang hian class aiah attribute <button>
pawh i hmang thei bawk . Lungchhiatthlak takin s hian disabled attribute hi an support lo.disabled
.disabled
<a>
<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>
.list-group-flush
Parent container (eg, cards)-a list group items edge-to-edge-a render turin border thenkhat paih chhuah tur leh rounded corners te dah belh rawh .
- Cras justo odio a ni
- Dapibus ac facilisis ah hian a awm a
- Morbi leo risus tih a ni
- Porta ac consectetur a ni a, a hlawhtling hle
- Vestibulum chu eros-ah a awm
<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>
Contextual class hmangin thil awmte chu stateful background leh color neia style list theih a ni.
- Dapibus ac facilisis ah hian a awm a
- Hei hi primary list group item a ni
- Hei hi secondary list group item a ni a
- Hei hi hlawhtlinna list group item a ni
- Hei hi hlauhawm list group item a ni
- Hei hi warning list group item a ni
- Hei hi info list group item a ni a
- Hei hi light list group item a ni
- Hei hi dark list group item a ni
<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>
Contextual class te pawh hian .list-group-item-action
. Entirna hmasa lama awm lo hetah hian hover styles te dah belh hi chhinchhiah ang che. .active
State pawhin a thlawp bawk a ; contextual list group item-a active selection tarlanna atan hmang rawh.
<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>
Assistive technology-te hnena awmzia thlentu
awmzia belhchhah nan color hman hian hmuh theiha hriattirna chauh a pe a, chu chu assistive technology hmangtute hnenah a thlen dawn lo – screen reader ang chi te. Color hmanga tarlan information chu a thupui a\ang ngeia lang (entir nan, hmuh theih thuziak), a nih loh leh kawng dang hmanga telh a nih theih nan enfiah rawh, chu chu .sr-only
class nena thup belh thuziak ang chi a ni.
Utility thenkhat puihnain unread counts, activity, leh thil dang tam tak entir turin list group item eng pawhah badge dah la .
- Cras justo odio a ni14 a ni
- Dapibus ac facilisis ah hian a awm a2. 2.
- Morbi leo risus tih a ni1. a ni
<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>
A chhunga HTML eng pawh deuhthaw dah la, a hnuaia linked list group ang chi tan pawh, flexbox utilities hmangin .
Group item thupui chu ziak rawh
Ni 3 kalta khanDonec id elit non mi porta gravida chu eget metus ah a awm a. A rilru a buai em em a, a rilru a hah em em bawk a. risus varius blandit.
Donec id elit a ni lo.Group item thupui chu ziak rawh
Ni 3 kalta khanDonec id elit non mi porta gravida chu eget metus ah a awm a. A rilru a buai em em a, a rilru a hah em em bawk a. risus varius blandit.
Donec id elit a ni lo.Group item thupui chu ziak rawh
Ni 3 kalta khanDonec id elit non mi porta gravida chu eget metus ah a awm a. A rilru a buai em em a, a rilru a hah em em bawk a. risus varius blandit.
Donec id elit a ni lo.<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>
Tab JavaScript plugin hmang la—a mal emaw, compiled file kaltlangin emaw telh la bootstrap.js
—kan list group chu tizau la, local content tabbable pane siam rawh.
JavaScript engmah ziak lovin list group navigation chu data-toggle="list"
element pakhat specify mai mai emaw, on emaw hmangin i activate thei a ni. Heng data attribute te hi .list-group-item
.
JavaScript hmangin tabbable list item enable rawh (list item tin chu a hranin activate a ngai a ni):
Mimal list item chu kawng hrang hrangin i activate thei ang:
Tabs panel fade in tir tur chuan pakhat zel ah add .fade
rawh .tab-pane
. Tab pane hmasa ber pawhin .show
a bul tanna thu awm chu hmuh theih turin a siam a ngai bawk.
List item element leh content container a activate thin. Tab hian DOM ah container node targeting a data-target
emaw a nei tur a ni.href
List item pek tawh chu thlang la, a kaihhnawih pane chu a rawn tarlang ang. List item dang a hmaa thlan tawh zawng zawng chu thlan loh a ni a, a kaihhnawih pane chu a thup vek a ni. Tab pane a lan tak tak hmain (entir nan, shown.bs.tab
event a thlen hmain) caller hnenah a kir leh thin.
Tab thar kan lantir hian events te chu a hnuaia mi ang hian a rawn fire thin:
hide.bs.tab
(tuna active tab-ah hian)show.bs.tab
(to-be-shown tab-ah chuan)hidden.bs.tab
(active tab hmasaah khanhide.bs.tab
event atana hman ang chiah kha)shown.bs.tab
(active thar-a just-shown tab-ah chuan,show.bs.tab
event atana hman ang chiah kha)
Tab active tawh loh chuan hide.bs.tab
and hidden.bs.tab
events chu a fire dawn lo.
Event chi hrang hrang | Hrilhfiahna |
---|---|
show.bs.tab ah hian a awm | He event hi tab show-ah a fire a, mahse tab thar a lan hmain a fire thin. Active tab leh active tab hmasa (a awm chuan) te target turin event.target and hmang ang che .event.relatedTarget |
tih a ni.bs.tab | He event hi tab pakhat a lan hnuah tab show ah a fire thin. Active tab leh active tab hmasa (a awm chuan) te target turin event.target and hmang ang che .event.relatedTarget |
hide.bs.tab ah hian a awm | He event hi tab thar entir tur a nih hunah a fire thin (chutiang chuan a hmaa active tab kha thup tur a ni). Tuna active tab leh soon-to-be-active tab thar chu target turin event.target and hmang ang che .event.relatedTarget |
thup.bs.tab ah hian a awm | He event hi tab thar a lan hnuah a fire a (chutiang chuan a hmaa active tab kha a thup a ni). Active tab hmasa leh active tab thar target turin event.target and hmang ang che .event.relatedTarget |