Package 'component'

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

Help Index


Create

Description

Create component

Usage

create(name)

Arguments

name

Name of component.


Minify CSS

Description

Minify CSS

Usage

minify_css(css)

Arguments

css

CSS string to minify.


Minify JavaScript

Description

Minify JavaScript

Usage

minify_js(js)

Arguments

js

JavaScript string to minify.


Namespace

Description

Namespace a string.

Usage

namespace(strings, ns, env = parent.frame())

Arguments

strings

Vector of string to namespace.

ns

Namespace function.

env

Environment to evaluate strings.

Transformers

  • 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 component

Description

Remove a component from the package.

Usage

remove_component(name, check = interactive())

Arguments

name

Name of component to detele.

check

Whether to run an interactive check.


Component

Description

Generate Component

Usage

roclet_component()