Component: Create components

Description Usage Arguments Examples

Description

A component connects a front-end template to exports (WIP).

Usage

1
Component(..., template, export)

Arguments

...

Values to load into the component environment or functions. Functions arguments may default to reactives in which they too are reactive.

template

A tag element.

export

A call to exports(), currently unused.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(shiny)

Component(
  template = actionButton(
    inputId = "clicks",
    label = "A button"
  ),
  function(clicks = input$clicks) {
    print("Button clicked")
  }
)

nteetor/shinystate documentation built on May 3, 2019, 8:05 p.m.