ryanswrt/autoform-slingshot

Progress bar support

ryanswrt opened this issue · 3 comments

Keep track of Slingshot uploader object and render progress value to progress bar widget (or just a numerical counter)

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?

+1 A much needed feature