Bootstrap Progress bar with Examples in Hindi
Bootstrap Progress Bar
Progress Bar का use किसी task, process, download, upload या किसी activity की completion को percentage के रूप में दिखाने के लिए किया जाता है। उदाहरण के लिए, अगर कोई task 50% complete हो चुका है, तो Progress Bar को 50% तक भरा हुआ दिखाया जा सकता है।
Bootstrap में Progress Bar बनाना काफी आसान है। इसके लिए मुख्य रूप से .progress और .progress-bar classes का उपयोग किया जाता है। इसके अलावा Bootstrap में अलग-अलग colors, striped design, animated stripes और multiple progress bars जैसी सुविधाएँ भी मिलती हैं।
Bootstrap Progress Bar की Basic Structure
Bootstrap Progress Bar में .progress class outer container का काम करती है, जबकि .progress-bar class actual progress को represent करती है। Progress की मात्रा सामान्यतः style="width: 50%;" जैसे CSS width से निर्धारित की जाती है।
.progress→ Progress Bar का wrapper/container.progress-bar→ Actual progress barwidth: 50%→ Progress की मात्रा 50% बताता हैbg-success,bg-dangerआदि → Progress Bar का color बदलने के लिएprogress-bar-striped→ Striped design के लिएprogress-bar-animated→ Stripes को animate करने के लिए
1. Basic Progress Bar
सबसे basic Progress Bar बनाने के लिए outer element पर progress और अंदर वाले element पर progress-bar class लगाई जाती है। नीचे दिए example में Progress Bar की width 50% है।