How can I implement a spinner inside a button like the spinner in Bootstrap 4?
The idea is, that I should show a loader or a spinner when I trigger an event (this could be loading data). Then, after loading the data should hide the spinner. Tried checking the documentation for spinner in dotvvm seems to be not helpful.
In such case Iād recommend adding a property called ButtonSelector in the LoadingAnimationPostBackHandler and in the JavaScript instead of applying the CSS classes on args.sender, apply them on document.querySelector(options.buttonSelector).
You would need to apply the postback handler to the ComboBox also.
Alternatively, we have a control called UploadProgress. It cannot add animation to the button, but it can render the spinner next to the button.
Also, the third option would be to use {value: _page.IsPostBackRunning} to add a conditional CSS class when any postback is running. Something like this: