Description Usage Arguments Details Value Examples
Update toast css from shinytoastr package.
1 2 3 |
container |
list of style arguments for the container div. See details and example. |
toast |
list of style arguments for the toast. See details and example. |
rgba |
numeric, vector of four css rgba property values for background color, e.g., |
hover.rgba |
numeric, vector of four css rgba property values for background color on mouse hover. See details. |
opacity |
numeric, toast opacity. Appended to |
hover.opacity |
numeric, toast opacity on mouse hover. |
radius |
character, border radius, e.g., |
position |
character, defaults to |
apputils already contains some toastr css overrides (loaded via use_apputils).
This function allows for injecting additional or different css overrides for a specific toast container
that may not already be as specified by apputils. This is typically used to adjust the app intro toast,
hence the default for position is "top-center".
Note that list names and values may be quoted if necessary. See example.
Should be familiar with source toastr css in addition to running the example
in order to understand which elements apply to container vs. toast.
If wanting to keep text fully opaque in the toast while using semi-transparency,
especially useful when adding a background image, use css rgba instead of opacity.
rgba andhover.rgba nullify opacity arguments if both are provided, respectively.
an html style tag.
1 2 3 4 | update_toastr_css(
list('overflow-y' = 'auto', width = '70%', height = '700px'),
list(top = '100px', margin = '0 auto', left = '115px')
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.