question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Progress bar with numbered steps - show steps for queues

See original GitHub issue

Progress bar with numbered steps functionality will be useful beside modal queues:

I’m working on naming this functionality and currently I’m here:

1. Introduce 2 new parameters: progressSteps (array of strings) and currentProgressStep (int), example:

progressSteps: [
  '<i class="fa fa-check" aria-hidden="true"></i>', // nice ✅ symbol
  '2',
  '3'
],
currentProgressStep: 1

2. Introduce 4 new methods:

  • swal.getProgressSteps()
  • swal.setProgressSteps([])
  • swal.showProgressSteps()
  • swal.hideProgressSteps()

What do you think about this?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
limontecommented, Sep 6, 2016

why not bundle this with queue / state machine functionality? I can only really see the use cases within those two areas

Not true, here’s the simple example with progress steps and without queue:

swal.setDefaults({progressSteps: ['1', '2']});

swal({
  title: 'Step 1',
  text: 'question 1',
  currentProgressStep: 0
})
.then(function() {
  swal({
    title: 'Step 2',
    text: 'question 2',
    currentProgressStep: 1
  });
});
0reactions
limontecommented, Sep 14, 2016

Done in v4.2.8

Read more comments on GitHub >

github_iconTop Results From Across the Web

Queue with Progress Steps - SweetAlert2 example
Queue with Progress Steps. Try me! Copy. const steps = ['1', '2', '3'] const Queue = Swal.mixin({ progressSteps: steps, confirmButtonText: 'Next >' ...
Read more >
How to create multi step progress bar using Bootstrap
The multi-step progress bar is used to display the progress of work in a step format. For Example: Step1 -> Step2 -> Step3...
Read more >
Step progress bar Tutorial, CSS. - YouTube
Don't miss our on whats new by following us on instagram at @kodhusco . Make sure to checkout Kodhus UI library: https://kodhus.
Read more >
laravel queues batching with progress bar tutorial #3 - YouTube
In this video we are going to implement Laravel queues batching, So jobs in queues will be done in batches and from the...
Read more >
Multiprocessing : use tqdm to display a progress bar
How can one display a progress bar that indicates at which step the 'map' function is ? from multiprocessing import Pool import tqdm...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found