Title: | Components for 'Shiny' |
---|---|
Description: | 'Components' for 'Shiny', similar to 'Shiny' modules. |
Authors: | John Coene [aut, cre], Opifex [cph, fnd] |
Maintainer: | John Coene <[email protected]> |
License: | GPL (>= 3) |
Version: | 0.0.1.9000 |
Built: | 2024-11-11 05:45:47 UTC |
Source: | https://github.com/devOpifex/component |
Create component
create(name)
create(name)
name |
Name of component. |
Minify CSS
minify_css(css)
minify_css(css)
css |
CSS string to minify. |
Minify JavaScript
minify_js(js)
minify_js(js)
js |
JavaScript string to minify. |
Namespace a string.
namespace(strings, ns, env = parent.frame())
namespace(strings, ns, env = parent.frame())
strings |
Vector of string to namespace. |
ns |
Namespace function. |
env |
Environment to evaluate |
class
: transforms {{ class red }}
into .namespace-red
id
: transforms {{ id red }}
into #namespace-red
ns
: transforms {{ ns red }}
into namespace-red
json
: transforms {{ json letters[1:2] }}
into ['a', 'b']
Remove a component from the package.
remove_component(name, check = interactive())
remove_component(name, check = interactive())
name |
Name of component to detele. |
check |
Whether to run an interactive check. |