Manually trigger loading spinner/indicator on lists

Hey,

I'm writing a custom button for a list, with some pnpjs that takes a few seconds. To indicate to the user that something is happening i want to trigger the same spinner, you see with the fd.control().refresh() function.

Is this possible with vue or should i use bootstrap for this?

Best wishes,
Nico

Hello @nI3o,

You can use this code to show the spinner on List or Library control:

fd.control('SPDataTable0').widget._progress(true);

And this code to hide it:

fd.control('SPDataTable0').widget._progress(false);