ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ꯫
ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯄꯁꯤꯡ ꯑꯁꯤ ꯀꯟꯇꯦꯟꯇꯁꯤꯡꯒꯤ ꯁꯤꯔꯤꯖ ꯑꯃꯥ ꯎꯠꯅꯕꯒꯤꯗꯃꯛ ꯐ꯭ꯂꯦꯛꯁꯤꯕꯜ ꯑꯃꯁꯨꯡ ꯄꯥꯋꯔꯐꯨꯜ ꯀꯝꯄꯣꯅꯦꯟꯇ ꯑꯃꯅꯤ꯫ ꯃꯅꯨꯡꯗꯥ ꯂꯩꯔꯤꯕꯥ ꯀꯟꯇꯦꯟꯇ ꯑꯃꯍꯦꯛꯇꯕꯨ ꯁꯄꯣꯔꯠ ꯇꯧꯅꯕꯥ ꯃꯈꯣꯌꯕꯨ ꯃꯣꯗꯤꯐꯥꯏ ꯇꯧꯕꯥ ꯑꯃꯁꯨꯡ ꯑꯦꯛꯁꯇꯦꯟꯗ ꯇꯧꯕꯥ꯫
ꯕꯦꯁꯤꯛ ꯈꯨꯗꯝ ꯑꯃꯥ꯫
ꯈ꯭ꯕꯥꯏꯗꯒꯤ ꯕꯦꯁꯤꯛ ꯑꯣꯏꯕꯥ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯁꯤ ꯂꯤꯁ꯭ꯠ ꯑꯥꯏꯇꯦꯃꯁꯤꯡ ꯑꯃꯁꯨꯡ ꯃꯊꯧ ꯇꯥꯕꯥ ꯀ꯭ꯂꯥꯁꯁꯤꯡꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯑꯅꯑꯣꯔꯗꯔ ꯇꯧꯔꯕꯥ ꯂꯤꯁ꯭ꯠ ꯑꯃꯅꯤ꯫ ꯃꯈꯥꯗꯥ ꯄꯤꯔꯤꯕꯥ ꯑꯣꯄꯁꯅꯁꯤꯡ ꯑꯁꯤꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯃꯁꯤꯗꯥ ꯁꯦꯃꯒꯠꯂꯨ, ꯅꯠꯠꯔꯒꯥ ꯃꯊꯧ ꯇꯥꯕꯒꯤ ꯃꯇꯨꯡ ꯏꯟꯅꯥ ꯅꯍꯥꯛꯀꯤ ꯏꯁꯥꯒꯤ ꯁꯤ.ꯑꯦꯁ.ꯑꯦꯁ.
- ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯅꯤꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯍꯨꯃꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯃꯔꯤꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯃꯁꯨꯡ ꯃꯉꯥꯁꯨꯕꯥ ꯑꯃꯥ꯫
<ul class="list-group">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
<li class="list-group-item">A fourth item</li>
<li class="list-group-item">And a fifth one</li>
</ul>
ꯑꯦꯛꯇꯤꯕ ꯑꯣꯏꯕꯥ ꯑꯥꯏꯇꯦꯃꯁꯤꯡ꯫
ꯍꯧꯖꯤꯛ ꯂꯩꯔꯤꯕꯥ ꯑꯦꯛꯇꯤꯕ ꯈꯅꯕꯒꯤ ꯃꯑꯣꯡ ꯑꯗꯨ ꯇꯥꯛꯅꯕꯥ .active
aꯗꯥ ꯍꯥꯄꯆꯤꯜꯂꯨ꯫.list-group-item
- ꯑꯦꯛꯇꯤꯕ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯅꯤꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯍꯨꯃꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯃꯔꯤꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯃꯁꯨꯡ ꯃꯉꯥꯁꯨꯕꯥ ꯑꯃꯥ꯫
<ul class="list-group">
<li class="list-group-item active" aria-current="true">An active item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
<li class="list-group-item">A fourth item</li>
<li class="list-group-item">And a fifth one</li>
</ul>
ꯗꯤꯁꯑꯦꯕꯜ ꯑꯣꯏꯔꯕꯥ ꯑꯥꯏꯇꯦꯃꯁꯤꯡ꯫
ꯃꯁꯤ ꯗꯤꯁꯦꯕꯜ ꯑꯣꯏꯅꯥ ꯎꯕꯥ ꯐꯪꯍꯟꯅꯕꯥ .disabled
aꯗꯥ ꯍꯥꯄꯆꯤꯜꯂꯨ꯫ ꯈꯪꯖꯤꯅꯕꯤꯌꯨ ꯃꯗꯨꯗꯤ ꯂꯩꯕꯥ ꯑꯦꯂꯤꯃꯦꯟꯇ ꯈꯔꯗꯤ ꯃꯈꯣꯌꯒꯤ ꯀ꯭ꯂꯤꯛ ꯏꯚꯦꯟꯇꯁꯤꯡ (ꯈꯨꯗꯝ ꯑꯣꯏꯅꯥ, ꯂꯤꯉ꯭ꯀꯁꯤꯡ) ꯃꯄꯨꯡ ꯐꯥꯅꯥ ꯗꯤꯁꯦꯕꯜ ꯇꯧꯅꯕꯥ ꯀꯁ꯭ꯇꯝ ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇꯁꯨ ꯃꯊꯧ ꯇꯥꯒꯅꯤ꯫.list-group-item
.disabled
- ꯗꯤꯁꯑꯦꯕꯜ ꯑꯣꯏꯔꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯅꯤ꯫
- ꯑꯅꯤꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯍꯨꯃꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯃꯔꯤꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯃꯁꯨꯡ ꯃꯉꯥꯁꯨꯕꯥ ꯑꯃꯥ꯫
<ul class="list-group">
<li class="list-group-item disabled" aria-disabled="true">A disabled item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
<li class="list-group-item">A fourth item</li>
<li class="list-group-item">And a fifth one</li>
</ul>
ꯂꯤꯉ꯭ꯛ ꯑꯃꯁꯨꯡ ꯕꯇꯅꯁꯤꯡ꯫
ꯍꯥꯄꯆꯤꯟꯗꯨꯅꯥ ꯍꯣꯚꯔ, ꯗꯤꯁꯦꯕꯜ, ꯑꯃꯁꯨꯡ ꯑꯦꯛꯇꯤꯕ ꯁ꯭ꯇꯦꯇꯁꯤꯡꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯑꯦꯛꯁꯟ ꯇꯧꯕꯥ ꯌꯥꯕꯥ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯃꯁꯤꯡ ꯁꯦꯝꯅꯕꯥ s ꯅꯠꯠꯔꯒꯥ <a>
s ꯁꯤꯖꯤꯟꯅꯧ꯫ ꯅꯟ-ꯏꯟꯇꯔꯦꯛꯇꯤꯕ ꯑꯦꯂꯤꯃꯦꯟꯇꯁꯤꯡꯅꯥ ꯁꯦꯝꯕꯥ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯄꯁꯤꯡ ( ꯑꯦꯁ ꯅꯠꯠꯔꯒꯥ ꯑꯦꯁꯒꯨꯝꯕꯥ)ꯅꯥ ꯀ꯭ꯂꯤꯛ ꯅꯠꯠꯔꯒꯥ ꯇꯦꯞ ꯑꯦꯐꯣꯔꯗꯦꯟꯁ ꯑꯃꯥ ꯄꯤꯗꯅꯕꯥ ꯑꯩꯈꯣꯌꯅꯥ ꯁ꯭ꯌꯨꯗꯣ-ꯀ꯭ꯂꯥꯁꯁꯤꯡ ꯑꯁꯤ ꯇꯣꯉꯥꯟꯅꯥ ꯊꯝꯂꯤ꯫<button>
.list-group-item-action
<li>
<div>
ꯃꯐꯝ ꯑꯁꯤꯗꯥ ꯁ꯭ꯇꯦꯟꯗꯔꯗ ꯀ꯭ꯂꯥꯁꯁꯤꯡ ꯑꯁꯤ ꯁꯣꯏꯗꯅꯥ ꯁꯤꯖꯤꯟꯅꯔꯣꯏꯗꯕꯅꯤ.btn
.
<div class="list-group">
<a href="#" class="list-group-item list-group-item-action active" aria-current="true">
The current link item
</a>
<a href="#" class="list-group-item list-group-item-action">A second link item</a>
<a href="#" class="list-group-item list-group-item-action">A third link item</a>
<a href="#" class="list-group-item list-group-item-action">A fourth link item</a>
<a href="#" class="list-group-item list-group-item-action disabled" tabindex="-1" aria-disabled="true">A disabled link item</a>
</div>
sꯒꯥ ꯂꯣꯌꯅꯅꯥ , ꯅꯍꯥꯛꯅꯥ ꯀ꯭ꯂꯥꯁꯀꯤ ꯃꯍꯨꯠꯇꯥ ꯑꯦꯠꯔꯤꯕꯤꯎꯠ <button>
ꯑꯗꯨꯁꯨ ꯁꯤꯖꯤꯟꯅꯕꯥ ꯌꯥꯏ꯫ ꯅꯨꯡꯉꯥꯏꯇꯕꯥ ꯋꯥꯐꯝ ꯑꯃꯅꯥ, s ꯅꯥ ꯗꯤꯁꯦꯕꯜ ꯇꯧꯔꯕꯥ ꯑꯦꯠꯔꯤꯕꯤꯎꯠ ꯑꯗꯨ ꯁꯄꯣꯔꯠ ꯇꯧꯗꯦ꯫disabled
.disabled
<a>
<div class="list-group">
<button type="button" class="list-group-item list-group-item-action active" aria-current="true">
The current button
</button>
<button type="button" class="list-group-item list-group-item-action">A second item</button>
<button type="button" class="list-group-item list-group-item-action">A third button item</button>
<button type="button" class="list-group-item list-group-item-action">A fourth button item</button>
<button type="button" class="list-group-item list-group-item-action" disabled>A disabled button item</button>
</div>
ꯐ꯭ꯂꯁ ꯇꯧꯕꯥ꯫
.list-group-flush
ꯃꯃꯥꯡꯒꯤ ꯀꯟꯇꯦꯅꯔ ꯑꯃꯗꯥ (ꯈꯨꯗꯝ ꯑꯣꯏꯅꯥ, ꯀꯥꯔꯗꯁꯤꯡ) ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯃꯁꯤꯡ ꯑꯦꯖ-ꯇꯨ-ꯑꯦꯖ ꯔꯦꯟꯗꯔ ꯇꯧꯅꯕꯥ ꯕꯣꯔꯗꯔ ꯈꯔꯗꯤ ꯂꯧꯊꯣꯛꯅꯕꯥ ꯑꯃꯁꯨꯡ ꯒꯣꯜꯗ ꯀꯣꯔꯅꯔꯁꯤꯡ ꯍꯥꯄꯆꯤꯜꯂꯨ꯫
- ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯅꯤꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯍꯨꯃꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯃꯔꯤꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯃꯁꯨꯡ ꯃꯉꯥꯁꯨꯕꯥ ꯑꯃꯥ꯫
<ul class="list-group list-group-flush">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
<li class="list-group-item">A fourth item</li>
<li class="list-group-item">And a fifth one</li>
</ul>
ꯅꯝꯕꯔ ꯄꯤꯕꯥ꯫
ꯅꯝꯕꯔ ꯂꯩꯕꯥ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯃꯁꯤꯡꯗꯥ ꯑꯣꯄꯁꯟ ꯇꯧꯅꯕꯥ .list-group-numbered
ꯃꯣꯗꯤꯐꯥꯏꯌꯔ ꯀ꯭ꯂꯥꯁ ꯍꯥꯄꯆꯤꯜꯂꯨ (ꯑꯃꯁꯨꯡ ꯑꯣꯄꯁꯅꯦꯜ ꯑꯣꯏꯅꯥ ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯃꯥ ꯁꯤꯖꯤꯟꯅꯧ)꯫ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯃꯁꯤꯡꯒꯤ ꯃꯅꯨꯡꯗꯥ ꯍꯦꯟꯅꯥ ꯐꯕꯥ ꯄ꯭ꯂꯦꯁꯃꯦꯟꯇ ꯇꯧꯅꯕꯥ ꯑꯃꯁꯨꯡ ꯍꯦꯟꯅꯥ ꯐꯕꯥ ꯀꯁ꯭ꯇꯃꯔꯥꯏꯖꯦꯁꯟ ꯇꯧꯕꯥ ꯌꯥꯅꯕꯥ <ol>
CSSꯒꯤ ꯈꯨꯠꯊꯥꯡꯗꯥ ꯅꯝꯕꯔꯁꯤꯡ ꯁꯦꯃꯒꯠꯂꯤ (s ꯗꯤꯐꯣꯜꯇ ꯕ꯭ꯔꯥꯎꯖꯔ ꯁ꯭ꯇꯥꯏꯂꯤꯡ ꯑꯃꯒꯤ ꯃꯍꯨꯠꯇꯥ )꯫<ol>
ꯅꯝꯕꯔꯁꯤꯡ ꯑꯁꯤ counter-reset
, <ol>
ꯑꯃꯁꯨꯡ ꯃꯗꯨꯒꯤ ꯃꯇꯨꯡꯗꯥ ꯁ꯭ꯇꯥꯏꯜ ::before
ꯇꯧꯏ ꯑꯃꯁꯨꯡ <li>
ꯋꯤꯊ counter-increment
ꯑꯃꯁꯨꯡ content
.
- ꯀ꯭ꯔꯁ ꯖꯁ꯭ꯇꯣ ꯑꯣꯗꯤꯑꯣ꯫
- ꯀ꯭ꯔꯁ ꯖꯁ꯭ꯇꯣ ꯑꯣꯗꯤꯑꯣ꯫
- ꯀ꯭ꯔꯁ ꯖꯁ꯭ꯇꯣ ꯑꯣꯗꯤꯑꯣ꯫
<ol class="list-group list-group-numbered">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Cras justo odio</li>
</ol>
ꯍꯥꯌꯔꯤꯕꯁꯤꯡ ꯑꯁꯤꯅꯥ ꯀꯁ꯭ꯇꯝ ꯀꯟꯇꯦꯟꯇꯀꯥ ꯂꯣꯌꯅꯅꯥ ꯑꯆꯧꯕꯥ ꯊꯕꯛ ꯇꯧꯏ꯫
-
ꯁꯕꯍꯦꯗꯤꯡ ꯇꯧꯕꯥ꯫ꯀ꯭ꯔꯁ ꯖꯁ꯭ꯇꯣ ꯑꯣꯗꯤꯑꯣ꯫
-
ꯁꯕꯍꯦꯗꯤꯡ ꯇꯧꯕꯥ꯫ꯀ꯭ꯔꯁ ꯖꯁ꯭ꯇꯣ ꯑꯣꯗꯤꯑꯣ꯫
-
ꯁꯕꯍꯦꯗꯤꯡ ꯇꯧꯕꯥ꯫ꯀ꯭ꯔꯁ ꯖꯁ꯭ꯇꯣ ꯑꯣꯗꯤꯑꯣ꯫
<ol class="list-group list-group-numbered">
<li class="list-group-item d-flex justify-content-between align-items-start">
<div class="ms-2 me-auto">
<div class="fw-bold">Subheading</div>
Cras justo odio
</div>
<span class="badge bg-primary rounded-pill">14</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-start">
<div class="ms-2 me-auto">
<div class="fw-bold">Subheading</div>
Cras justo odio
</div>
<span class="badge bg-primary rounded-pill">14</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-start">
<div class="ms-2 me-auto">
<div class="fw-bold">Subheading</div>
Cras justo odio
</div>
<span class="badge bg-primary rounded-pill">14</span>
</li>
</ol>
ꯑꯐꯩꯕ
.list-group-horizontal
ꯕ꯭ꯔꯦꯀꯄꯣꯏꯟꯇ ꯄꯨꯝꯅꯃꯛꯀꯤ ꯃꯅꯨꯡꯗꯥ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯃꯁꯤꯡꯒꯤ ꯂꯦꯑꯥꯎꯠ ꯑꯗꯨ ꯚꯔꯇꯤꯀꯦꯂꯗꯒꯤ ꯍꯣꯔꯥꯏꯖꯣꯟꯇꯦꯜ ꯑꯣꯏꯅꯥ ꯍꯣꯡꯗꯣꯛꯅꯕꯥ ꯍꯥꯄꯆꯤꯜꯂꯨ꯫ .list-group-horizontal-{sm|md|lg|xl|xxl}
ꯅꯠꯔꯒꯥ, ꯕ꯭ꯔꯦꯀꯄꯣꯏꯟꯇ ꯑꯗꯨꯗꯒꯤ ꯍꯧꯔꯒꯥ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯃꯥ ꯍꯣꯔꯥꯏꯖꯣꯟꯇꯦꯜ ꯑꯣꯏꯍꯟꯅꯕꯥ ꯔꯦꯁ꯭ꯄꯣꯟꯁꯤꯕꯜ ꯚꯦꯔꯤꯑꯦꯟꯇ ꯑꯃꯥ ꯈꯜꯂꯨ min-width
. ꯍꯧꯖꯤꯛꯀꯤ ꯑꯣꯏꯅꯥ ꯍꯣꯔꯥꯏꯖꯣꯟꯇꯦꯜ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯄꯁꯤꯡ ꯑꯁꯤ ꯐ꯭ꯂꯁ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯄꯁꯤꯡꯒꯥ ꯄꯨꯅꯁꯤꯅꯕꯥ ꯌꯥꯗꯦ꯫
ꯄ꯭ꯔꯣꯇꯤꯞ: ꯍꯣꯔꯥꯏꯖꯣꯟꯇꯦꯜ ꯑꯣꯏꯕꯥ ꯃꯇꯃꯗꯥ ꯆꯞ ꯃꯥꯟꯅꯕꯥ-ꯋꯥꯏꯗ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯃꯁꯤꯡ ꯄꯥꯝꯕꯤꯕ꯭ꯔꯥ? .flex-fill
ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯝ ꯈꯨꯗꯤꯡꯃꯛꯇꯥ ꯍꯥꯄꯆꯤꯜꯂꯨ꯫
- ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯅꯤꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯍꯨꯃꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯅꯤꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯍꯨꯃꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯅꯤꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯍꯨꯃꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯅꯤꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯍꯨꯃꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯅꯤꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯍꯨꯃꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯅꯤꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯑꯍꯨꯃꯁꯨꯕꯥ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
<ul class="list-group list-group-horizontal">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
</ul>
<ul class="list-group list-group-horizontal-sm">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
</ul>
<ul class="list-group list-group-horizontal-md">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
</ul>
<ul class="list-group list-group-horizontal-lg">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
</ul>
<ul class="list-group list-group-horizontal-xl">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
</ul>
<ul class="list-group list-group-horizontal-xxl">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
</ul>
ꯀꯟꯇꯦꯛꯁꯆꯨꯑꯦꯜ ꯀ꯭ꯂꯥꯁꯁꯤꯡ꯫
ꯁ꯭ꯇꯦꯇꯐꯨꯜ ꯕꯦꯀꯒ꯭ꯔꯥꯎꯟꯗ ꯑꯃꯁꯨꯡ ꯃꯆꯨ ꯂꯩꯕꯥ ꯑꯥꯏꯇꯦꯃꯁꯤꯡ ꯁ꯭ꯇꯥꯏꯜ ꯂꯤꯁ꯭ꯠ ꯇꯧꯅꯕꯥ ꯀꯟꯇꯦꯛꯁꯆꯨꯑꯦꯜ ꯀ꯭ꯂꯥꯁꯁꯤꯡ ꯁꯤꯖꯤꯟꯅꯧ꯫
- ꯏꯆꯝ ꯆꯝꯕꯥ ꯗꯤꯐꯣꯜꯇ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯏꯆꯝ ꯆꯝꯕꯥ ꯄ꯭ꯔꯥꯏꯃꯥꯔꯤ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯏꯆꯝ ꯆꯝꯕꯥ ꯁꯦꯀꯦꯟꯗꯔꯤ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯏꯆꯝ ꯆꯝꯕꯥ ꯃꯥꯌ ꯄꯥꯀꯄꯒꯤ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯏꯆꯝ ꯆꯝꯕꯥ ꯈꯨꯗꯣꯡꯊꯤꯕꯥ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯏꯆꯝ ꯆꯝꯕꯥ ꯋꯥꯔꯅꯤꯡ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯏꯆꯝ ꯆꯝꯕꯥ ꯏꯅꯐꯣ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯏꯆꯝ ꯆꯝꯕꯥ ꯂꯥꯏꯠ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
- ꯏꯆꯝ ꯆꯝꯕꯥ ꯗꯥꯔꯛ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫
<ul class="list-group">
<li class="list-group-item">A simple default list group item</li>
<li class="list-group-item list-group-item-primary">A simple primary list group item</li>
<li class="list-group-item list-group-item-secondary">A simple secondary list group item</li>
<li class="list-group-item list-group-item-success">A simple success list group item</li>
<li class="list-group-item list-group-item-danger">A simple danger list group item</li>
<li class="list-group-item list-group-item-warning">A simple warning list group item</li>
<li class="list-group-item list-group-item-info">A simple info list group item</li>
<li class="list-group-item list-group-item-light">A simple light list group item</li>
<li class="list-group-item list-group-item-dark">A simple dark list group item</li>
</ul>
ꯀꯟꯇꯦꯛꯁꯆꯨꯑꯦꯜ ꯀ꯭ꯂꯥꯁꯁꯤꯡꯅꯁꯨ .list-group-item-action
. ꯃꯃꯥꯡꯒꯤ ꯈꯨꯗꯝ ꯑꯗꯨꯗꯥ ꯂꯩꯇꯕꯥ ꯃꯐꯝ ꯑꯁꯤꯗꯥ ꯍꯣꯚꯔ ꯁ꯭ꯇꯥꯏꯂꯁꯤꯡ ꯍꯥꯄꯆꯤꯅꯕꯥ ꯑꯗꯨ ꯅꯣꯠ ꯇꯧꯕꯤꯌꯨ꯫ ꯃꯁꯤꯗꯁꯨ ꯅꯠꯇꯅꯥ .active
ꯔꯥꯖ꯭ꯌ ꯑꯁꯤꯅꯥ ꯃꯇꯦꯡ ꯄꯥꯡꯂꯤ; ꯀꯟꯇꯦꯛꯁꯆꯨꯑꯦꯜ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯗꯥ ꯑꯦꯛꯇꯤꯕ ꯑꯣꯏꯕꯥ ꯈꯅꯕꯒꯤ ꯃꯑꯣꯡ ꯑꯃꯥ ꯇꯥꯛꯅꯕꯥ ꯃꯁꯤ ꯑꯦꯞꯂꯥꯏ ꯇꯧ꯫
<div class="list-group">
<a href="#" class="list-group-item list-group-item-action">A simple default list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-primary">A simple primary list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-secondary">A simple secondary list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-success">A simple success list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-danger">A simple danger list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-warning">A simple warning list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-info">A simple info list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-light">A simple light list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-dark">A simple dark list group item</a>
</div>
ꯑꯦꯁꯤꯁ꯭ꯇꯦꯟꯇ ꯇꯦꯛꯅꯣꯂꯣꯖꯤꯁꯤꯡꯗꯥ ꯑꯔꯊ ꯄꯤꯕꯥ꯫
ꯑꯔꯊ ꯍꯥꯄꯆꯤꯟꯅꯕꯥ ꯃꯆꯨ ꯁꯤꯖꯤꯟꯅꯕꯅꯥ ꯚꯤꯖꯨꯑꯦꯜ ꯏꯟꯗꯤꯀꯦꯁꯟ ꯑꯃꯥ ꯈꯛꯇꯃꯛ ꯄꯤꯔꯤ, ꯃꯁꯤ ꯑꯦꯁꯤꯁ꯭ꯇꯦꯟꯇ ꯇꯦꯛꯅꯣꯂꯣꯖꯤꯁꯤꯡ ꯁꯤꯖꯤꯟꯅꯔꯤꯕꯁꯤꯡꯗꯥ – ꯁ꯭ꯛꯔꯤꯟ ꯔꯤꯗꯔꯒꯨꯝꯕꯥ – ꯌꯧꯍꯅꯕꯥ ꯉꯝꯂꯣꯏ꯫ .visually-hidden
ꯃꯆꯨ ꯑꯗꯨꯅꯥ ꯇꯥꯀꯄꯥ ꯏꯅꯐꯣꯔꯃꯦꯁꯟ ꯑꯗꯨ ꯀꯟꯇꯦꯟꯇ ꯃꯁꯥꯃꯛꯇꯒꯤ (ꯈꯨꯗꯝ ꯑꯣꯏꯅꯥ, ꯎꯕꯥ ꯐꯪꯂꯤꯕꯥ ꯇꯦꯛꯁꯠ ꯑꯗꯨꯗꯒꯤ) ꯃꯌꯦꯛ ꯁꯦꯡꯅꯥ ꯎꯕꯥ ꯐꯪꯏ ꯍꯥꯌꯕꯥ ꯁꯣꯌꯗꯅꯥ ꯈꯪꯗꯣꯀꯎ, ꯅꯠꯠꯔꯒꯥ ꯀ꯭ꯂꯥꯁ ꯑꯗꯨꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯂꯣꯠꯁꯤꯜꯂꯕꯥ ꯑꯍꯦꯅꯕꯥ ꯇꯦꯛꯁꯇꯒꯨꯝꯕꯥ ꯑꯂꯇꯔꯅꯦꯇꯤꯚ ꯑꯣꯏꯕꯥ ꯄꯥꯝꯕꯩꯁꯤꯡꯒꯤ ꯈꯨꯠꯊꯥꯡꯗꯥ ꯌꯥꯎꯍꯅꯕꯥ꯫
ꯕꯦꯖꯁꯤꯡꯒꯥ ꯂꯣꯌꯅꯅꯥ꯫
ꯌꯨꯇꯤꯂꯤꯇꯤ ꯈꯔꯒꯤ ꯃꯇꯦꯡꯅꯥ ꯄꯥꯗꯕꯥ ꯀꯥꯎꯟꯇꯁꯤꯡ, ꯑꯦꯛꯇꯤꯕꯤꯇꯤ, ꯑꯃꯁꯨꯡ ꯑꯇꯩ ꯀꯌꯥ ꯎꯠꯅꯕꯥ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯍꯦꯛꯇꯗꯥ ꯕꯦꯖꯁꯤꯡ ꯍꯥꯄꯆꯤꯜꯂꯨ .
- ꯂꯤꯁ꯭ꯠ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫꯱꯴
- ꯑꯅꯤꯁꯨꯕꯥ ꯂꯤꯁ꯭ꯠ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫꯲
- ꯑꯍꯨꯃꯁꯨꯕꯥ ꯂꯤꯁ꯭ꯠ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯥ꯫꯱
<ul class="list-group">
<li class="list-group-item d-flex justify-content-between align-items-center">
A list item
<span class="badge bg-primary rounded-pill">14</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
A second list item
<span class="badge bg-primary rounded-pill">2</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
A third list item
<span class="badge bg-primary rounded-pill">1</span>
</li>
</ul>
ꯀꯁ꯭ꯇꯝ ꯀꯟꯇꯦꯟꯇ꯫
ꯃꯈꯥꯗꯥ ꯄꯤꯔꯤꯕꯥ ꯑꯁꯤꯒꯨꯝꯕꯥ ꯂꯤꯉ꯭ꯛ ꯇꯧꯔꯕꯥ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯄꯁꯤꯡꯒꯤꯗꯃꯛꯇꯁꯨ, ꯃꯅꯨꯡꯗꯥ ꯆꯥꯎꯔꯥꯛꯅꯥ HTML ꯑꯃꯠꯇꯥ ꯍꯥꯄꯆꯤꯜꯂꯨ, ꯐ꯭ꯂꯦꯛꯁꯕꯣꯛꯁ ꯌꯨꯇꯤꯂꯤꯇꯤꯁꯤꯡꯒꯤ ꯃꯇꯦꯡꯅꯥ .
ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯝ ꯍꯦꯗꯤꯡ ꯂꯤꯁ꯭ꯠ ꯇꯧꯕꯥ꯫
ꯅꯨꯃꯤꯠ ꯳ꯅꯤꯒꯤ ꯃꯃꯥꯡꯗꯥ꯫ꯄꯦꯔꯥꯒ꯭ꯔꯥꯐ ꯑꯃꯗꯥ ꯄ꯭ꯂꯦꯁꯍꯣꯜꯗꯔ ꯀꯟꯇꯦꯟꯇ ꯈꯔꯥ꯫
ꯑꯃꯁꯨꯡ ꯑꯄꯤꯀꯄꯥ ꯄ꯭ꯔꯤꯟꯇ ꯈꯔꯥ꯫ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯝ ꯍꯦꯗꯤꯡ ꯂꯤꯁ꯭ꯠ ꯇꯧꯕꯥ꯫
ꯅꯨꯃꯤꯠ ꯳ꯅꯤꯒꯤ ꯃꯃꯥꯡꯗꯥ꯫ꯄꯦꯔꯥꯒ꯭ꯔꯥꯐ ꯑꯃꯗꯥ ꯄ꯭ꯂꯦꯁꯍꯣꯜꯗꯔ ꯀꯟꯇꯦꯟꯇ ꯈꯔꯥ꯫
ꯑꯃꯁꯨꯡ ꯈꯔꯅꯥ ꯃ꯭ꯌꯨꯠ ꯇꯧꯔꯕꯥ ꯑꯄꯤꯀꯄꯥ ꯄ꯭ꯔꯤꯟꯇꯁꯤꯡ꯫ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯝ ꯍꯦꯗꯤꯡ ꯂꯤꯁ꯭ꯠ ꯇꯧꯕꯥ꯫
ꯅꯨꯃꯤꯠ ꯳ꯅꯤꯒꯤ ꯃꯃꯥꯡꯗꯥ꯫ꯄꯦꯔꯥꯒ꯭ꯔꯥꯐ ꯑꯃꯗꯥ ꯄ꯭ꯂꯦꯁꯍꯣꯜꯗꯔ ꯀꯟꯇꯦꯟꯇ ꯈꯔꯥ꯫
ꯑꯃꯁꯨꯡ ꯈꯔꯅꯥ ꯃ꯭ꯌꯨꯠ ꯇꯧꯔꯕꯥ ꯑꯄꯤꯀꯄꯥ ꯄ꯭ꯔꯤꯟꯇꯁꯤꯡ꯫<div class="list-group">
<a href="#" class="list-group-item list-group-item-action active" aria-current="true">
<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">Some placeholder content in a paragraph.</p>
<small>And some small print.</small>
</a>
<a href="#" class="list-group-item list-group-item-action">
<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">Some placeholder content in a paragraph.</p>
<small class="text-muted">And some muted small print.</small>
</a>
<a href="#" class="list-group-item list-group-item-action">
<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">Some placeholder content in a paragraph.</p>
<small class="text-muted">And some muted small print.</small>
</a>
</div>
ꯆꯦꯀꯕꯣꯛꯁ ꯑꯃꯁꯨꯡ ꯔꯦꯗꯤꯑꯣꯁꯤꯡ꯫
ꯕꯨꯠꯁ꯭ꯠꯔꯥꯄꯀꯤ ꯆꯦꯀꯕꯣꯛꯁꯁꯤꯡ ꯑꯃꯁꯨꯡ ꯔꯦꯗꯤꯑꯣꯁꯤꯡ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯥꯏꯇꯦꯃꯁꯤꯡꯒꯤ ꯃꯅꯨꯡꯗꯥ ꯊꯝꯃꯨ ꯑꯃꯁꯨꯡ ꯃꯊꯧ ꯇꯥꯕꯒꯤ ꯃꯇꯨꯡ ꯏꯟꯅꯥ ꯀꯁ꯭ꯇꯃꯁ ꯇꯧ꯫ ꯅꯍꯥꯛꯅꯥ ꯃꯈꯣꯌꯁꯤꯡ ꯑꯁꯤ s ꯌꯥꯑꯣꯗꯅꯥ ꯁꯤꯖꯤꯟꯅꯕꯥ ꯌꯥꯏ <label>
, ꯑꯗꯨꯕꯨ ꯆꯥꯅꯕꯤꯗꯨꯅꯥ aria-label
ꯑꯦꯛꯁꯦꯁꯤꯕꯤꯂꯤꯇꯤꯒꯤꯗꯃꯛ ꯑꯦꯠꯔꯤꯕ꯭ꯌꯨꯠ ꯑꯃꯥ ꯑꯃꯁꯨꯡ ꯚꯦꯜꯌꯨ ꯑꯃꯥ ꯌꯥꯑꯣꯍꯅꯕꯥ ꯅꯤꯡꯁꯤꯡꯕꯤꯌꯨ꯫
- ꯑꯍꯥꯅꯕꯥ ꯆꯦꯀꯕꯣꯛꯁ꯫
- ꯑꯅꯤꯁꯨꯕꯥ ꯆꯦꯀꯕꯣꯛꯁ꯫
- ꯑꯍꯨꯃꯁꯨꯕꯥ ꯆꯦꯀꯕꯣꯛꯁ꯫
- ꯃꯔꯤꯁꯨꯕꯥ ꯆꯦꯀꯕꯣꯛꯁ꯫
- ꯃꯉꯥꯁꯨꯕꯥ ꯆꯦꯀꯕꯣꯛꯁ꯫
<ul class="list-group">
<li class="list-group-item">
<input class="form-check-input me-1" type="checkbox" value="" aria-label="...">
First checkbox
</li>
<li class="list-group-item">
<input class="form-check-input me-1" type="checkbox" value="" aria-label="...">
Second checkbox
</li>
<li class="list-group-item">
<input class="form-check-input me-1" type="checkbox" value="" aria-label="...">
Third checkbox
</li>
<li class="list-group-item">
<input class="form-check-input me-1" type="checkbox" value="" aria-label="...">
Fourth checkbox
</li>
<li class="list-group-item">
<input class="form-check-input me-1" type="checkbox" value="" aria-label="...">
Fifth checkbox
</li>
</ul>
ꯑꯃꯁꯨꯡ ꯀꯔꯤꯒꯨꯝꯕꯥ ꯑꯗꯣꯝꯅꯥ ꯑꯆꯧꯕꯥ ꯍꯤꯠ ꯑꯦꯔꯤꯌꯥꯁꯤꯡꯒꯤꯗꯃꯛꯇꯥ <label>
s ꯑꯁꯤ ꯄꯥꯝꯂꯕꯗꯤ .list-group-item
, ꯑꯗꯣꯝꯅꯥ ꯃꯗꯨꯁꯨ ꯇꯧꯕꯥ ꯌꯥꯏ꯫
<div class="list-group">
<label class="list-group-item">
<input class="form-check-input me-1" type="checkbox" value="">
First checkbox
</label>
<label class="list-group-item">
<input class="form-check-input me-1" type="checkbox" value="">
Second checkbox
</label>
<label class="list-group-item">
<input class="form-check-input me-1" type="checkbox" value="">
Third checkbox
</label>
<label class="list-group-item">
<input class="form-check-input me-1" type="checkbox" value="">
Fourth checkbox
</label>
<label class="list-group-item">
<input class="form-check-input me-1" type="checkbox" value="">
Fifth checkbox
</label>
</div>
ꯁꯥꯁꯁ ꯇꯧꯕꯥ꯫
ꯚꯦꯔꯤꯑꯦꯕꯂꯁꯤꯡ꯫
$list-group-color: $gray-900;
$list-group-bg: $white;
$list-group-border-color: rgba($black, .125);
$list-group-border-width: $border-width;
$list-group-border-radius: $border-radius;
$list-group-item-padding-y: $spacer * .5;
$list-group-item-padding-x: $spacer;
$list-group-item-bg-scale: -80%;
$list-group-item-color-scale: 40%;
$list-group-hover-bg: $gray-100;
$list-group-active-color: $component-active-color;
$list-group-active-bg: $component-active-bg;
$list-group-active-border-color: $list-group-active-bg;
$list-group-disabled-color: $gray-600;
$list-group-disabled-bg: $list-group-bg;
$list-group-action-color: $gray-700;
$list-group-action-hover-color: $list-group-action-color;
$list-group-action-active-color: $body-color;
$list-group-action-active-bg: $gray-200;
ꯃꯤꯛꯁꯅꯁꯤꯡ꯫
ꯑꯦꯁ.ꯒꯤꯗꯃꯛ ꯀꯟꯇꯦꯛꯁꯆꯨꯑꯦꯜ ꯚꯦꯔꯤꯑꯦꯟꯇ ꯀ꯭ꯂꯥꯁꯁꯤꯡ$theme-colors
ꯁꯦꯃꯒꯠꯅꯕꯥ ꯂꯣꯌꯅꯅꯥ ꯁꯤꯖꯤꯟꯅꯩ꯫.list-group-item
@mixin list-group-item-variant($state, $background, $color) {
.list-group-item-#{$state} {
color: $color;
background-color: $background;
&.list-group-item-action {
&:hover,
&:focus {
color: $color;
background-color: shade-color($background, 10%);
}
&.active {
color: $white;
background-color: $color;
border-color: $color;
}
}
}
}
ꯀꯤꯁꯤ
list-group-item-variant()
ꯃꯤꯛꯁꯤꯅꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯃꯣꯗꯤꯐꯥꯏꯌꯔ ꯀ꯭ꯂꯥꯁꯁꯤꯡ ꯁꯦꯃꯒꯠꯄꯥ ꯂꯨꯞ꯫
// List group contextual variants
//
// Add modifier classes to change text and background color on individual items.
// Organizationally, this must come after the `:hover` states.
@each $state, $value in $theme-colors {
$list-group-variant-bg: shift-color($value, $list-group-item-bg-scale);
$list-group-variant-color: shift-color($value, $list-group-item-color-scale);
@if (contrast-ratio($list-group-variant-bg, $list-group-variant-color) < $min-contrast-ratio) {
$list-group-variant-color: mix($value, color-contrast($list-group-variant-bg), abs($list-group-item-color-scale));
}
@include list-group-item-variant($state, $list-group-variant-bg, $list-group-variant-color);
}
ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇꯀꯤ ꯂꯃꯆꯠ-ꯁꯥꯖꯠ꯫
ꯇꯦꯕ ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇ ꯄ꯭ꯂꯒꯏꯟ ꯁꯤꯖꯤꯟꯅꯧ—ꯃꯁꯤ ꯃꯤꯑꯣꯏ ꯑꯃꯃꯃꯒꯤ ꯑꯣꯏꯅꯥ ꯅꯠꯠꯔꯒꯥ ꯀꯝꯄꯥꯏꯜ ꯇꯧꯔꯕꯥ bootstrap.js
ꯐꯥꯏꯂꯒꯤ ꯈꯨꯠꯊꯥꯡꯗꯥ ꯌꯥꯑꯣꯍꯅꯕꯥ—ꯂꯣꯀꯦꯜ ꯀꯟꯇꯦꯟꯇꯀꯤ ꯇꯦꯕꯜ ꯇꯧꯕꯥ ꯌꯥꯕꯥ ꯄꯦꯅꯁꯤꯡ ꯁꯦꯝꯅꯕꯥ ꯑꯩꯈꯣꯌꯒꯤ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯑꯁꯤ ꯁꯥꯡꯗꯣꯛꯅꯕꯥ꯫
<div class="row">
<div class="col-4">
<div class="list-group" id="list-tab" role="tablist">
<a class="list-group-item list-group-item-action active" id="list-home-list" data-bs-toggle="list" href="#list-home" role="tab" aria-controls="list-home">Home</a>
<a class="list-group-item list-group-item-action" id="list-profile-list" data-bs-toggle="list" href="#list-profile" role="tab" aria-controls="list-profile">Profile</a>
<a class="list-group-item list-group-item-action" id="list-messages-list" data-bs-toggle="list" href="#list-messages" role="tab" aria-controls="list-messages">Messages</a>
<a class="list-group-item list-group-item-action" id="list-settings-list" data-bs-toggle="list" href="#list-settings" role="tab" aria-controls="list-settings">Settings</a>
</div>
</div>
<div class="col-8">
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade show active" id="list-home" role="tabpanel" aria-labelledby="list-home-list">...</div>
<div class="tab-pane fade" id="list-profile" role="tabpanel" aria-labelledby="list-profile-list">...</div>
<div class="tab-pane fade" id="list-messages" role="tabpanel" aria-labelledby="list-messages-list">...</div>
<div class="tab-pane fade" id="list-settings" role="tabpanel" aria-labelledby="list-settings-list">...</div>
</div>
</div>
</div>
ꯗꯦꯇꯥ ꯑꯦꯠꯔꯤꯕꯤꯎꯇꯁꯤꯡ ꯁꯤꯖꯤꯟꯅꯗꯨꯅꯥ꯫
data-bs-toggle="list"
ꯅꯍꯥꯛꯅꯥ ꯁꯨꯞꯅꯒꯤ ꯁ꯭ꯄꯦꯁꯤꯐꯥꯏ ꯇꯧꯗꯨꯅꯥ ꯅꯠꯠꯔꯒꯥ ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯃꯗꯥ ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇ ꯑꯃꯠꯇꯥ ꯏꯗꯅꯥ ꯂꯤꯁ꯭ꯠ ꯒ꯭ꯔꯨꯞ ꯅꯦꯚꯤꯒꯦꯁꯟ ꯑꯃꯥ ꯑꯦꯛꯇꯤꯚ ꯇꯧꯕꯥ ꯌꯥꯏ꯫ ꯍꯥꯌꯔꯤꯕꯥ ꯗꯦꯇꯥ ꯑꯦꯠꯔꯤꯕ꯭ꯌꯨꯠꯁꯤꯡ ꯑꯁꯤ .list-group-item
.
<div role="tabpanel">
<!-- List group -->
<div class="list-group" id="myList" role="tablist">
<a class="list-group-item list-group-item-action active" data-bs-toggle="list" href="#home" role="tab">Home</a>
<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#profile" role="tab">Profile</a>
<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#messages" role="tab">Messages</a>
<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#settings" role="tab">Settings</a>
</div>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="home" role="tabpanel">...</div>
<div class="tab-pane" id="profile" role="tabpanel">...</div>
<div class="tab-pane" id="messages" role="tabpanel">...</div>
<div class="tab-pane" id="settings" role="tabpanel">...</div>
</div>
</div>
ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇꯀꯤ ꯈꯨꯠꯊꯥꯡꯗꯥ꯫
ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇꯀꯤ ꯈꯨꯠꯊꯥꯡꯗꯥ ꯇꯦꯕꯜ ꯇꯧꯕꯥ ꯌꯥꯕꯥ ꯂꯤꯁ꯭ꯠ ꯑꯥꯏꯇꯦꯝ ꯏꯅꯦꯕꯜ ꯇꯧꯕꯥ (ꯂꯤꯁ꯭ꯠ ꯑꯥꯏꯇꯦꯝ ꯈꯨꯗꯤꯡꯃꯛ ꯃꯤꯑꯣꯏ ꯑꯃꯃꯃꯒꯤ ꯑꯣꯏꯅꯥ ꯑꯦꯛꯇꯤꯕ ꯑꯣꯏꯕꯥ ꯃꯊꯧ ꯇꯥꯏ):
var triggerTabList = [].slice.call(document.querySelectorAll('#myTab a'))
triggerTabList.forEach(function (triggerEl) {
var tabTrigger = new bootstrap.Tab(triggerEl)
triggerEl.addEventListener('click', function (event) {
event.preventDefault()
tabTrigger.show()
})
})
ꯅꯍꯥꯛꯅꯥ ꯃꯤꯑꯣꯏ ꯑꯃꯒꯤ ꯂꯤꯁ꯭ꯠ ꯑꯥꯏꯇꯦꯝ ꯑꯗꯨ ꯃꯑꯣꯡ ꯀꯌꯥꯗꯥ ꯑꯦꯛꯇꯤꯚ ꯇꯧꯕꯥ ꯌꯥꯏ:
var triggerEl = document.querySelector('#myTab a[href="#profile"]')
bootstrap.Tab.getInstance(triggerEl).show() // Select tab by name
var triggerFirstTabEl = document.querySelector('#myTab li:first-child a')
bootstrap.Tab.getInstance(triggerFirstTabEl).show() // Select first tab
ꯐꯦꯗ ꯏꯐꯦꯛꯇ꯫
ꯇꯦꯕꯁꯤꯡꯒꯤ ꯄꯦꯅꯦꯜ ꯐꯦꯗ ꯏꯟ .fade
ꯇꯧꯅꯕꯥ, ꯈꯨꯗꯤꯡꯃꯛꯇꯥ ꯍꯥꯄꯆꯤꯜꯂꯨ .tab-pane
. ꯑꯍꯥꯅꯕꯥ ꯇꯦꯕ ꯄꯦꯟ ꯑꯗꯨꯅꯥ .show
ꯑꯍꯥꯅꯕꯥ ꯀꯟꯇꯦꯟꯇ ꯑꯗꯨꯁꯨ ꯎꯕꯥ ꯐꯪꯍꯅꯒꯗꯕꯅꯤ꯫
<div class="tab-content">
<div class="tab-pane fade show active" id="home" role="tabpanel">...</div>
<div class="tab-pane fade" id="profile" role="tabpanel">...</div>
<div class="tab-pane fade" id="messages" role="tabpanel">...</div>
<div class="tab-pane fade" id="settings" role="tabpanel">...</div>
</div>
ꯄꯥꯝꯕꯩꯁꯤꯡ꯫
constructor
ꯂꯤꯁ꯭ꯠ ꯑꯥꯏꯇꯦꯝ ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯃꯥ ꯑꯃꯁꯨꯡ ꯀꯟꯇꯦꯟꯇ ꯀꯟꯇꯦꯅꯔ ꯑꯃꯥ ꯑꯦꯛꯇꯤꯕ ꯇꯧꯏ꯫ ꯇꯦꯕ ꯑꯗꯨꯗꯥ DOMꯗꯥ ꯀꯟꯇꯦꯅꯔ ꯅꯣꯗ ꯑꯃꯥ ꯇꯥꯔꯒꯦꯠ ꯇꯧꯕꯥ ꯑꯃꯥ data-bs-target
ꯅꯠꯠꯔꯒꯥ ꯑꯃꯥ ꯂꯩꯒꯗꯕꯅꯤ꯫href
<div class="list-group" id="myList" role="tablist">
<a class="list-group-item list-group-item-action active" data-bs-toggle="list" href="#home" role="tab">Home</a>
<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#profile" role="tab">Profile</a>
<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#messages" role="tab">Messages</a>
<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#settings" role="tab">Settings</a>
</div>
<div class="tab-content">
<div class="tab-pane active" id="home" role="tabpanel">...</div>
<div class="tab-pane" id="profile" role="tabpanel">...</div>
<div class="tab-pane" id="messages" role="tabpanel">...</div>
<div class="tab-pane" id="settings" role="tabpanel">...</div>
</div>
<script>
var firstTabEl = document.querySelector('#myTab a:last-child')
var firstTab = new bootstrap.Tab(firstTabEl)
firstTab.show()
</script>
ꯎꯠꯄ
ꯑꯄꯤꯕꯥ ꯂꯤꯁ꯭ꯠ ꯑꯥꯏꯇꯦꯝ ꯑꯗꯨ ꯈꯅꯒꯅꯤ ꯑꯃꯁꯨꯡ ꯃꯁꯤꯒꯥ ꯃꯔꯤ ꯂꯩꯅꯕꯥ ꯄꯦꯟ ꯑꯗꯨ ꯎꯠꯂꯤ꯫ ꯃꯃꯥꯡꯗꯥ ꯈꯅꯈꯤꯕꯥ ꯑꯇꯣꯞꯄꯥ ꯂꯤꯁ꯭ꯠ ꯑꯥꯏꯇꯦꯝ ꯑꯃꯍꯦꯛꯇꯕꯨ ꯈꯅꯒꯠꯂꯕꯥ ꯑꯣꯏꯔꯀꯏ ꯑꯃꯁꯨꯡ ꯃꯁꯤꯒꯥ ꯃꯔꯤ ꯂꯩꯅꯕꯥ ꯄꯦꯟ ꯑꯗꯨ ꯂꯣꯠꯁꯤꯜꯂꯤ꯫ ꯇꯦꯕ ꯄꯦꯟ ꯑꯗꯨ ꯇꯁꯦꯡꯅꯥ ꯎꯠꯂꯕꯥ ꯃꯇꯨꯡꯗꯥ (ꯈꯨꯗꯝ ꯑꯣꯏꯅꯥ, shown.bs.tab
ꯊꯧꯗꯣꯛ ꯑꯗꯨ ꯊꯣꯛꯂꯛꯠꯔꯤꯉꯩꯒꯤ ꯃꯃꯥꯡꯗꯥ) ꯀꯣꯂꯔ ꯑꯗꯨꯗꯥ ꯍꯜꯂꯀꯏ꯫
var someListItemEl = document.querySelector('#someListItem')
var tab = new bootstrap.Tab(someListItemEl)
tab.show()
ꯗꯤꯁꯄꯣꯖ ꯇꯧꯕꯥ꯫
ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯃꯒꯤ ꯇꯦꯕ ꯑꯃꯥ ꯃꯥꯡꯍꯜꯂꯤ꯫
getInstance ꯍꯥꯌꯅꯥ ꯂꯧꯕꯥ ꯌꯥꯏ꯫
DOM ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯃꯒꯥ ꯃꯔꯤ ꯂꯩꯅꯕꯥ ꯇꯦꯕ ꯏꯟꯁꯇꯦꯟꯁ ꯑꯗꯨ ꯐꯪꯍꯅꯕꯥ ꯌꯥꯕꯥ ꯁ꯭ꯇꯦꯇꯤꯛ ꯃꯦꯊꯗ꯫
var triggerEl = document.querySelector('#trigger')
var tab = bootstrap.Tab.getInstance(triggerEl) // Returns a Bootstrap tab instance
getOrCreateInstance ꯍꯥꯌꯅꯥ ꯂꯧꯕꯥ ꯌꯥꯏ꯫
DOM ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯃꯒꯥ ꯃꯔꯤ ꯂꯩꯅꯕꯥ ꯇꯦꯕ ꯏꯟꯁꯇꯦꯟꯁ ꯑꯗꯨ ꯐꯪꯍꯅꯕꯥ ꯌꯥꯕꯥ ꯁ꯭ꯇꯦꯇꯤꯛ ꯃꯦꯊꯗ, ꯅꯠꯠꯔꯒꯥ ꯃꯁꯤ ꯏꯅꯤꯁꯤꯑꯦꯂꯥꯏꯖ ꯇꯧꯈꯤꯗꯕꯥ ꯑꯣꯏꯔꯕꯗꯤ ꯑꯅꯧꯕꯥ ꯑꯃꯥ ꯁꯦꯝꯕꯥ ꯌꯥꯍꯜꯂꯤ꯫
var triggerEl = document.querySelector('#trigger')
var tab = bootstrap.Tab.getOrCreateInstance(triggerEl) // Returns a Bootstrap tab instance
ꯊꯧꯔꯃꯁꯤꯡ꯫
ꯑꯅꯧꯕꯥ ꯇꯦꯕ ꯑꯃꯥ ꯎꯠꯄꯥ ꯃꯇꯃꯗꯥ, ꯊꯧꯗꯣꯀꯁꯤꯡ ꯑꯁꯤ ꯃꯈꯥꯗꯥ ꯄꯤꯔꯤꯕꯥ ꯑꯣꯔꯗꯔ ꯑꯁꯤꯒꯤ ꯃꯇꯨꯡ ꯏꯟꯅꯥ ꯐꯥꯏꯔ ꯇꯧꯏ:
hide.bs.tab
(ꯍꯧꯖꯤꯛ ꯂꯩꯔꯤꯕꯥ ꯑꯦꯛꯇꯤꯕ ꯇꯦꯕ ꯑꯗꯨꯗꯥ)show.bs.tab
(ꯌꯦꯡꯒꯗꯕꯥ ꯇꯦꯕ ꯑꯗꯨꯗꯥ)hidden.bs.tab
(ꯃꯃꯥꯡꯒꯤ ꯑꯦꯛꯇꯤꯕ ꯇꯦꯕ ꯑꯗꯨꯗꯥ, ꯊꯧꯗꯣꯛ ꯑꯗꯨꯒꯤꯗꯃꯛ ꯑꯗꯨꯃꯛhide.bs.tab
)shown.bs.tab
(ꯅꯧꯅꯥ ꯑꯦꯛꯇꯤꯕ ꯑꯣꯏꯕꯥ ꯍꯧꯖꯤꯛ ꯎꯠꯂꯤꯕꯥ ꯇꯦꯕ ꯑꯗꯨꯗꯥ, ꯊꯧꯔꯝ ꯑꯗꯨꯒꯤꯗꯃꯛ ꯑꯗꯨꯃꯛshow.bs.tab
)
ꯀꯔꯤꯒꯨꯝꯕꯥ ꯇꯦꯕ ꯑꯃꯠꯇꯥ ꯍꯥꯟꯅꯅꯥ ꯑꯦꯛꯇꯤꯕ ꯑꯣꯏꯗ꯭ꯔꯕꯗꯤ, hide.bs.tab
ꯑꯃꯁꯨꯡ hidden.bs.tab
ꯏꯚꯦꯟꯇꯁꯤꯡ ꯑꯗꯨ ꯐꯥꯏꯔ ꯇꯧꯔꯣꯏ.
ꯏꯚꯦꯟꯇ ꯃꯈꯜ꯫ | ꯋꯥꯔꯣꯜ |
---|---|
show.bs.tab |
ꯊꯧꯔꯝ ꯑꯁꯤ ꯇꯦꯕ ꯁꯣꯗꯥ ꯐꯥꯏꯔ ꯇꯧꯏ, ꯑꯗꯨꯕꯨ ꯑꯅꯧꯕꯥ ꯇꯦꯕ ꯑꯗꯨ ꯎꯠꯂꯕꯥ ꯃꯃꯥꯡꯗꯥ꯫ ꯑꯦꯛꯇꯤꯕ ꯇꯦꯕ ꯑꯃꯁꯨꯡ ꯃꯃꯥꯡꯒꯤ ꯑꯦꯛꯇꯤꯕ ꯇꯦꯕ (ꯀꯔꯤꯒꯨꯝꯕꯥ ꯂꯩꯔꯕꯗꯤ) ꯑꯗꯨ ꯃꯊꯪꯁꯤꯠꯅꯥ ꯇꯥꯔꯒꯦꯠ ꯇꯧꯅꯕꯥ event.target ꯑꯃꯁꯨꯡ ꯁꯤꯖꯤꯟꯅꯧ꯫event.relatedTarget |
shown.bs.tab |
ꯇꯦꯕ ꯑꯃꯥ ꯎꯠꯂꯕꯥ ꯃꯇꯨꯡꯗꯥ ꯏꯚꯦꯟꯇ ꯑꯁꯤ ꯇꯦꯕ ꯁꯣꯗꯥ ꯐꯥꯏꯔ ꯇꯧꯏ꯫ ꯑꯦꯛꯇꯤꯕ ꯇꯦꯕ ꯑꯃꯁꯨꯡ ꯃꯃꯥꯡꯒꯤ ꯑꯦꯛꯇꯤꯕ ꯇꯦꯕ (ꯀꯔꯤꯒꯨꯝꯕꯥ ꯂꯩꯔꯕꯗꯤ) ꯑꯗꯨ ꯃꯊꯪꯁꯤꯠꯅꯥ ꯇꯥꯔꯒꯦꯠ ꯇꯧꯅꯕꯥ event.target ꯑꯃꯁꯨꯡ ꯁꯤꯖꯤꯟꯅꯧ꯫event.relatedTarget |
hide.bs.tab |
ꯑꯅꯧꯕꯥ ꯇꯦꯕ ꯑꯃꯥ ꯎꯠꯄꯥ ꯃꯇꯃꯗꯥ ꯊꯧꯗꯣꯛ ꯑꯁꯤ ꯐꯥꯏꯔ ꯇꯧꯏ (ꯑꯗꯨꯒꯥ ꯃꯔꯝ ꯑꯁꯤꯅꯥ ꯃꯃꯥꯡꯒꯤ ꯑꯦꯛꯇꯤꯕ ꯇꯦꯕ ꯑꯗꯨ ꯂꯣꯠꯁꯤꯅꯒꯗꯕꯅꯤ)꯫ ꯃꯊꯪꯁꯤꯠꯅꯥ ꯍꯧꯖꯤꯛ ꯂꯩꯔꯤꯕꯥ ꯑꯦꯛꯇꯤꯕ ꯇꯦꯕ ꯑꯃꯁꯨꯡ ꯑꯅꯧꯕꯥ ꯑꯊꯨꯕꯥ ꯃꯇꯃꯗꯥ ꯑꯦꯛꯇꯤꯕ ꯑꯣꯏꯒꯗꯧꯔꯤꯕꯥ ꯇꯦꯕ ꯑꯗꯨꯗꯥ ꯇꯥꯔꯒꯦꯠ ꯇꯧꯅꯕꯥ event.target ꯑꯃꯁꯨꯡ ꯁꯤꯖꯤꯟꯅꯧ꯫event.relatedTarget |
hidden.bs.tab |
ꯑꯅꯧꯕꯥ ꯇꯦꯕ ꯑꯃꯥ ꯎꯠꯂꯕꯥ ꯃꯇꯨꯡꯗꯥ ꯊꯧꯗꯣꯛ ꯑꯁꯤ ꯐꯥꯏꯔ ꯇꯧꯏ (ꯑꯗꯨꯒꯥ ꯃꯔꯝ ꯑꯁꯤꯅꯥ ꯃꯃꯥꯡꯒꯤ ꯑꯦꯛꯇꯤꯕ ꯇꯦꯕ ꯑꯗꯨ ꯂꯣꯠꯁꯤꯜꯂꯤ)꯫ ꯃꯃꯥꯡꯒꯤ ꯑꯦꯛꯇꯤꯕ ꯇꯦꯕ ꯑꯃꯁꯨꯡ ꯑꯅꯧꯕꯥ ꯑꯦꯛꯇꯤꯕ ꯇꯦꯕ ꯑꯗꯨ ꯃꯊꯪꯁꯤꯠꯅꯥ ꯇꯥꯔꯒꯦꯠ ꯇꯧꯅꯕꯥ event.target ꯑꯃꯁꯨꯡ ꯁꯤꯖꯤꯟꯅꯧ꯫event.relatedTarget |
var tabElms = document.querySelectorAll('a[data-bs-toggle="list"]')
tabElms.forEach(function(tabElm) {
tabElm.addEventListener('shown.bs.tab', function (event) {
event.target // newly activated tab
event.relatedTarget // previous active tab
})
}