Hello. Very nice add-on.Can i connect a spinner instance to some component

Hello. Very nice add-on.Can i connect a spinner instance to some component and show/hide it?

Hi, thank you very much for your feedback.

Do you mean, for example, having a button that toggles spinner visibility on click?
If so, it is possible

Spinner spinner = new Spinner(SpinnerType.ROTATING_PLANE);
Button button = new Button("Toggle spinner visibility", ev -> spinner.setVisible(!spinner.isVisible()));

Hi. No, i need to find possibility to attach an Spinner component to some other component, like Grid, and toggle its visibility when need. And need to center Spinner component inside Grid. For now, i trying to make a Div which contains Grid and Spinner. It is needed for situations when Grid already visible on Page, but there is no data loaded yet (slow backend answer). I looked at components like Tooltip and wants to make similarity, but no luck yet. Ideally, i want Spinner Component that just connect to another Component and can be toggle on/off its visibility. Example:

Grid<Person> grid = new Grid<>();
Spinner spinner = Spinners.getCurrent().setSpinner(grid);
spinner.show(); // or hide();

The Div wapper is the first things that comes also to my mind, but this way you should add the wrapper to the UI, not the grid directly.
Do you mind to open an issue on github? And, of course, contributions are more than welcome.