taggleOutput {lineupjs}R Documentation

Shiny bindings for taggle

Description

Output and render functions for using taggle within Shiny applications and interactive Rmd documents.

Usage

taggleOutput(outputId, width = "100%", height = "800px")

renderTaggle(expr, env = parent.frame(), quoted = FALSE)

Arguments

outputId

output variable to read from

width, height

Must be a valid CSS unit (like '100%', '800px', 'auto') or a number, which will be coerced to a string and have 'px' appended.

expr

An expression that generates a taggle

env

The environment in which to evaluate expr.

quoted

Is expr a quoted expression (with quote())? This is useful if you want to save an expression in a variable.

Value

An output or render function that enables the use of the widget within Shiny applications.

Examples

# !formatR
library(shiny)
app <- shinyApp(
  ui = fluidPage(taggleOutput("taggle")),
  server = function(input, output) {
    taggle <- lineupBuilder(iris) |> buildTaggle()
    output$taggle <- renderTaggle(taggle)
  }
)


if (interactive()) app


[Package lineupjs version 4.6.0 Index]