Adds a waiter to a rective UI element. Thew waiter is displayed when the element is invalidated then is removed when the element receives a new value.
withWaiter(element, html = spin_1(), color = "#333e48", image = "")
element | A reactive element, e.g.: |
---|---|
html | HTML content of waiter, generally a spinner, see |
color | Background color of loading screen. |
image | Path to background image. |