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.
1 | 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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.