Loading spinner
Does ui-grid support loading spinner? Also if it have empty list can it show info what no records?
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.
I think I agree with @keeper3000. I always do my own loading spinner, and I can see a few reasons that makes sense:
- 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.
- Most people would want a spinner that matches their application, so we'd have to make it very customisable
- 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.
Having the ability to set a message for loading and no results states would be really helpful.