| calcite_scrim | R Documentation |
Scrims are an overlay placed on top of content to show disabled or loading
states. By default, Scrim positions to the extent of its closest parent.
To display a Scrim with custom positioning, add position: relative styling
to its closest parent container.
calcite_scrim(..., id = NULL, loading = FALSE)
... |
Main content for the scrim (default slot — primarily loading information) |
id |
Component ID (required for Shiny reactivity) |
loading |
When |
When given an id, the scrim reports its state as input$id — a named list:
$loading — logical, whether the loading indicator is shown
Use update_calcite(id, loading = TRUE/FALSE) to toggle the loading state
from the server.
Scrim fills its closest positioned parent. Wrap the area you want to cover
in a container with position: relative so the scrim covers the right region.
An object of class calcite_component which is a subclass of shiny.tag
calcite_scrim(id = "my_scrim", loading = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.