ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Loading spinner

Open mmuruev opened this issue 12 years ago • 3 comments

Does ui-grid support loading spinner? Also if it have empty list can it show info what no records?

mmuruev avatar Oct 21 '14 06:10 mmuruev

I find it best to handle a loading spinner outside UI-Grid by toggling a loading flag prior to my service call. Then once my service has returned the items I toggle the loading flag back to false.

I'm not on the ui-grid team, but I'm not sure it would make sense for them to support that.

keeper3000 avatar Oct 21 '14 13:10 keeper3000

I think I agree with @keeper3000. I always do my own loading spinner, and I can see a few reasons that makes sense:

  1. The grid doesn't know whether you're loading data or just have no data. Some use cases start with an empty grid until the user does some action (see the importer tutorial for example). A spinner would be incorrect in this situation.
  2. Most people would want a spinner that matches their application, so we'd have to make it very customisable
  3. The user has control of the data loading anyway, once we make them set a bunch of options to tailor it, they may as well have just used their application spinner, it'd probably be less work.

My inclination at the moment would be that putting a spinner into the grid wouldn't be the right choice.

PaulL1 avatar Oct 21 '14 20:10 PaulL1

Having the ability to set a message for loading and no results states would be really helpful.

djmccormick avatar Jul 08 '15 15:07 djmccormick