hilongjw / vue-progressbar

A lightweight progress bar for vue
http://hilongjw.github.io/vue-progressbar
MIT License
1.46k stars 162 forks source link

Method to get current status of progress bar | Feature request #100

Open abhinavkumar985 opened 3 years ago

abhinavkumar985 commented 3 years ago

I want to get the status of the progress bar at the any moment in any where of my code, where one is in progress or finished.

this.$progress.start();

// some code // some more code let status = this.$progress.status(); // Required {status: 'open', progress: 20%}

if(status){ // do something }

this.$progress.finish(); // End

aesyondu commented 3 years ago

Hi, I was curious as well. Looking at the source code, I found the get() function:

https://github.com/hilongjw/vue-progressbar/blob/a803468fd74d5c574595000d9ef394de5412d710/src/index.js#L72-L74