Skip to content

Commit 4f84f8f

Browse files
1 parent 9ca8a2a commit 4f84f8f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

inst/examples/examples_shiny.R

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#devtools::install_github("timelyportfolio/reactR@enhancements")
2+
#devtools::install_github("timelyportfolio/roffice")
3+
4+
library(reactR)
5+
library(roffice)
6+
library(shiny)
7+
8+
#options(shiny.trace = TRUE)
9+
ui <- officeuiwidgetOutput("me")
10+
11+
server <- function(input, output, session) {
12+
# slider with just one prop and some Shiny
13+
output$me <- renderOfficeuiwidget({
14+
officeuiwidget(
15+
reactR::React$Slider(label = "Basic Slider", shiny = "onChange")
16+
)
17+
})
18+
}
19+
20+
shinyApp(ui, server)

0 commit comments

Comments
 (0)