Progress bar support
ryanswrt opened this issue · 3 comments
ryanswrt commented
Keep track of Slingshot uploader object and render progress value to progress bar widget (or just a numerical counter)
timbrandin commented
How about we create a helper and exported function for this, where one could pass the image src we could return the reactive status from slingshot. We just need to store a reference to that somewhere to be able too look it up when asked for.
But in theory we could do this:
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="{{slingshotProgress src}}" aria-valuemin="0" aria-valuemax="100" style="width: {{slingshotProgress src}}%;">
<span class="sr-only">{{slingshotProgress src}}% Complete</span>
</div>
</div>
or this:
Tracker.autorun(function() {
var progress = SlingshotProgress(src);
console.log(progress + '% Complete');
});
xen88 commented
Hi, any update on progress bar support for blaze?
THPubs commented
+1 A much needed feature