how to display onyxspinner while event is running

how to display a loading image (eg: onyx spinner) while the event is running

Comments

  • You'll need to divide your event handling into smaller chunks, as a spinner will only display when the browser returns to idle. Display a spinner, use enyo.job to schedule your work, do a chunk at a time, then hide the spinner.
  • @ ben : hi ben i m working on android app are u mean the small chunks as multi threading concept
  • No, I'm talking about the common idea in JavaScript that you divide work into pieces... say you're processing 1000 items in an array. You process 200, then use setTimout to schedule a function to process the next 200, repeat until complete.
Sign In or Register to comment.