-
Notifications
You must be signed in to change notification settings - Fork 24
Why remove the global? #46
Comments
It's going to be added back, when I seperate the progress-system and the design into two packages, that work together. Can you show me an example of how you used it? |
Let's say I'm on a route viewing a document that can be shared with other users, and a Meteor.call needs to be made to convert a user entered email address to a userId. This call will naturally take some time. I use a Progress = IronRouterProgress # this used to be possible, now we have a hack for this
Utils.doWork = (work) ->
if typeof work is 'function'
t = Meteor.setTimeout
t ->
Progress?.start?()
t ->
work? ->
t ->
Progress?.done?()
, if Utils.isMobile() then 263 else 101
, if Utils.isMobile() then 113 else 29
, 3
# do some work:
Utils.doWork (done) ->
Meteor.call 'find-some-stuff', (err, result) ->
doSomething result
done() |
This is indeed going to be possible in the next version. The packages will consist of: Also thinking of ways to properly implement "Progress UI", where you won't need to remove the package, to override what it does. |
Sounds great! With respect to overridable progress UI, sounds like you have the right idea that there are two core components: a "determinate" display of progress between 0->100 which is implemented as a bar on top, and an "indeterminate" spinning element. I wouldn't invent any more kinds of progress elements, these two are great. Customizing these is a matter of supplying my own custom DOM and CSS as far as I'm concerned: Using this I can go bonkers creating fancy animations and multi-element visuals as I please. The core of the progress controller is all about applying a class and removing it when progress starts or stops. For the determinate case, I want IronProgress to apply a |
Any update on this? Is this project dead? |
It was great to be able to fire IronRouterProgress.start() and .done() when performing heavy tasks on the client. We built a large app that worked with this very nicely. From a usability perspective, it's great to be able to use the exact same visual motif to represent busy work on the client regardless of whether it's a navigation between routes or a long server call on the same route ... etc. Now that it's meticulously hidden, I will need to fork and brutalize. Why was this great feature removed?
The text was updated successfully, but these errors were encountered: