Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a demo shiny app in the doc #429

Open
ColinFay opened this issue Apr 7, 2022 · 0 comments
Open

Add a demo shiny app in the doc #429

ColinFay opened this issue Apr 7, 2022 · 0 comments

Comments

@ColinFay
Copy link

ColinFay commented Apr 7, 2022

It would be helpful to have a demo shiny app at: https://www.htmlwidgets.org/develop_intro.html#creating-your-own-widgets

library(shiny)
library(mywidget)
ui <- tagList(
    mywidgetOutput("x")
 )

server <- function(
  input,
  output,
  session
) {
  output$x <- renderMywidget({ 
    	mywidget("hello")
    })
}

shinyApp(ui, server)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant