| Title: | Fireworks for your 'Shiny' application |
|---|---|
| Description: | 'fireworks' is a wrapper around the 'fireworks-js' library that contains ready to use fireworks components for web development frameworks like Vue3 and React. |
| Authors: | Veerle van Leemput [aut, cre] |
| Maintainer: | Veerle van Leemput <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.1 |
| Built: | 2026-11-24 15:25:29 UTC |
| Source: | https://github.com/hypebright/fireworks |
This function attaches fireworks dependencies to the given tag
add_fireworks_deps(tag)add_fireworks_deps(tag)
tag |
Element to attach the dependencies. |
Add fireworks div
fireworks(id, width = "100%", height = "400px", options = list())fireworks(id, width = "100%", height = "400px", options = list())
id |
The id of the fireworks div |
width, height
|
The width and height of the fireworks, either in pixels (e.g. '100px') or percent (e.g. '100%') |
options |
A list of options to pass to the fireworks |
Create fireworks and start or stop the fireworks.
Create an object to show fireworks as an overlay on the app
or a specific HTML element specified by id. Then start,
the fireworks show, and stop the fireworks show.
new()
Fireworks$new( id = NULL, session = shiny::getDefaultReactiveDomain(), options = list() )
idId, or vector of ids, of element on which to display the fireworks, if NULL the fireworks show
will be an overlay on the full HTML document.
sessionThe Shiny session
optionsA list of options to pass to the fireworks
Create fireworks.
\dontrun{Fireworks$new()}
start()
Fireworks$start()
Start fireworks.
stop()
Fireworks$stop(fadeOut = FALSE)
fadeOutWhether to fade out the fireworks before stopping. Note that this will take 2000ms to complete.
Stop the fireworks
clone()
The objects of this class are cloneable with this method.
Fireworks$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `Fireworks$new` ## ------------------------------------------------ ## Not run: Fireworks$new()## ------------------------------------------------ ## Method `Fireworks$new` ## ------------------------------------------------ ## Not run: Fireworks$new()
Add fireworks dependencies
useFireworks()useFireworks()
A tagList with the fireworks dependencies