lab.js icon indicating copy to clipboard operation
lab.js copied to clipboard

Add an optional progress bar to Sequence

Open jdpigeon opened this issue 4 years ago • 1 comments

I thought it would be nice for the library to have an easy-to-use progress bar like jspsych has. I went ahead and made same changes to the Sequence in class in order to achieve that in this PR.

I'm not sure if adding this directly to Sequence is this best idea as this will break if the user tries to nest progress bars. Maybe it could be added to the global Lab.js 'engine'?

Also, I was pretty shocked to put this whole thing together and then find some CSS styles for a progress bar! I didn't see anywhere in the library where these would be applied, so I'm curious what the story is.

Cheers, and let me know what I can do to tidy this up.

jdpigeon avatar Apr 01 '20 00:04 jdpigeon

Oh, apologies for the force-push! 😬

FelixHenninger avatar Apr 01 '20 15:04 FelixHenninger