in English

Pagannayasan

Dokumentasion ken dagiti pagarigan para iti panagusar kadagiti kostumbre a bara ti panagrang-ay ti Bootstrap a mangitampok ti suporta para kadagiti naurnong a bara, dagiti animado a likudan, ken dagiti etiketa ti teksto.

No kasano ti panagandar dayta

Dagiti paset ti panagrang-ay ket naibangon babaen dagiti dua nga elemento ti HTML, dagiti sumagmamano a CSS tapno mangikeddeng ti kalawa, ken sumagmamano a kababalin. Saanmi nga usaren ti elemento ti HTML5<progress> , a mangsigurado a mabalinmo nga agtumpok kadagiti bara ti panagrang-ay, mang-animate kadagitoy, ken mangikabil kadagiti etiketa ti teksto iti rabaw dagitoy.

  • Usarenmi ti .progressas a wrapper tapno mangipakita ti max value ti progress bar.
  • Usarentayo ti makin -uneg .progress-bara mangipakita iti panagrang-ay agingga ita.
  • Ti .progress-barkasapulan ti inline nga estilo, klase ti utilidad, wenno kostumbre a CSS tapno mangikeddeng ti kalawada.
  • Ti .progress-barmet ket agkasapulan ti sumagmamano roleken ariadagiti kababalin tapno agbalin a makastrek.

Pagtitiponem amin dayta, ket addaanka kadagiti sumaganad a pagarigan.

<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>

Ti Bootstrap ket mangipaay ti sumagmamano a utilidad para iti panangisaad ti kalawa . Depende kadagiti kasapulam, dagitoy ket mabalin a makatulong iti napardas a panangikonfigura ti panagrang-ay.

<div class="progress">
  <div class="progress-bar w-75" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100"></div>
</div>

Dagiti etiketa

Manginayon kadagiti etiketa kadagiti bara ti panagrang-aymo babaen ti panangikabil ti teksto iti uneg ti .progress-bar.

25% nga .
<div class="progress">
  <div class="progress-bar" role="progressbar" style="width: 25%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">25%</div>
</div>

Kinatayag

Mangipasdekkami laeng iti heightpateg iti .progress, isu a no baliwam dayta a pateg ti makin -uneg .progress-barket automatiko a mangbalbaliw iti kadakkel a maitunos.

<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>

Dagiti Background

Usaren dagiti klase ti utilidad ti likudan tapno baliwan ti langa dagiti indibidual a bara ti panagrang-ay.

<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>

Adu a bara

Iraman ti adu a progress bar iti maysa a progress component no kasapulam.

<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>

Garitgaritan

Inayon .progress-bar-stripediti ania man .progress-bartapno maipakat ti garit babaen ti CSS a panagrang-ay iti rabaw ti kolor ti likudan ti bara ti panagrang-ay.

<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>

Animado nga mga garit

Mabalin met nga animated ti striped gradient. Inayon .progress-bar-animatediti .progress-bartapno mapabiag dagiti garit iti kannawan agingga iti kannigid babaen dagiti animasion ti CSS3.

<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>