Ɲɛfɛtaali
Sɛbɛnw ni misaliw baarakɛcogo la Bootstrap ladamu ɲɛtaa baraw la minnu bɛ dɛmɛ jira baraw lajɛlenw kan, kɔkanna ɲɛnamaw, ani sɛbɛnniw taamasiyɛnw.
A bɛ baara kɛ cogo min na
Ɲɛtaa yɔrɔw bɛ jɔ ni HTML fɛn fila ye, CSS dɔw walasa ka bonya sigi, ani fɛn damadɔw. An tɛ baara Kɛ ni HTML5 <progress>
yɔrɔ ye , k’a Jira ko i bɛ Se ka ɲɛtaa-sɛbɛnw Sìgi ɲɔgɔn kan, k’u Labɛn, ka sɛbɛnni-sɛbɛnw Blà u kan.
- An bɛ baara Kɛ ni
.progress
as a wrapper ye walasa ka max value jira progress bar la. - An bɛ baara kɛ ni kɔnɔna
.progress-bar
ye walasa ka ɲɛtaa jira fo ka na se bi ma. - The
.progress-bar
bɛ inline style, utility class, walima custom CSS de wajibiya walasa k’u bonya sigi. - The
.progress-bar
fana bɛ dɔwrole
niaria
jogo dɔw de wajibiya walasa a ka se ka sɔrɔ.
Aw ye o bɛɛ fara ɲɔgɔn kan, aw bɛ nin misaliw sɔrɔ.
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: 50%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: 75%" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: 100%" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div>
</div>
Bootstrap bɛ nafamafɛn damadɔ di walasa ka bonya sigi sen kan . Ka kɛɲɛ ni i magow ye, o fɛnw bɛ se ka dɛmɛ don ɲɛtaa labɛnni na joona.
<div class="progress">
<div class="progress-bar w-75" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100"></div>
</div>
Labels (Labɛnw).
Aw bɛ labeliw fara aw ka ɲɛtaa jiralanw kan ni sɛbɛnniw bilali ye .progress-bar
.
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: 25%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">25%</div>
</div>
Janya
An bɛ height
nafa dɔ dɔrɔn de Sìgi .progress
, o la n'i y'o nafa Yɛlɛma kɔnɔna .progress-bar
bɛ bonya Yɛlɛma a yɛrɛma ka Kɛɲɛ ni o ye.
<div class="progress" style="height: 1px;">
<div class="progress-bar" role="progressbar" style="width: 25%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress" style="height: 20px;">
<div class="progress-bar" role="progressbar" style="width: 25%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
Backgrounds (Baarakɛcogo).
Baara kɛ ni kɔkanna nafama kalanw ye walasa ka ɲɛtaa taamasiyɛn kelen-kelen bɛɛ cogoya Changer.
<div class="progress">
<div class="progress-bar bg-success" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar bg-info" role="progressbar" style="width: 50%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar bg-warning" role="progressbar" style="width: 75%" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar bg-danger" role="progressbar" style="width: 100%" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div>
</div>
Baro caman
Aw bɛ ɲɛtaa jiralan caman don ɲɛtaa yɔrɔ dɔ la ni aw mago bɛ a la.
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: 15%" aria-valuenow="15" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-bar bg-success" role="progressbar" style="width: 30%" aria-valuenow="30" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-bar bg-info" role="progressbar" style="width: 20%" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"></div>
</div>
A bɛ kɛ ni sɛrɛkiliw ye
Fàra .progress-bar-striped
o .progress-bar
kan walasa ka sɛrɛ dɔ Kɛ CSS gradient fɛ progress bar ka kɔkanna kulɛri kan.
<div class="progress">
<div class="progress-bar progress-bar-striped" role="progressbar" style="width: 10%" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-striped bg-success" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-striped bg-info" role="progressbar" style="width: 50%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-striped bg-warning" role="progressbar" style="width: 75%" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-striped bg-danger" role="progressbar" style="width: 100%" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div>
</div>
Bande animées
Gradient striped fana bɛ se ka kɛ animation ye. A fara a kan .progress-bar-animated
walasa .progress-bar
ka jiriw ɲɛnamaya kinin fɛ ka taa numan fɛ CSS3 animationw fɛ.
<div class="progress">
<div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" style="width: 75%"></div>
</div>