To produce a shinyglide screen using a numericInput, you can follow these steps:
install.packages("shinyglide")
library(shinyglide)
numericInput
as the input element:ui <- fluidPage(
numericInput("number", "Enter a number:", value = 1)
)
glideLayout
function, and include the numericInput
inside a slide:ui <- fluidPage(
glideLayout(
slide("Slide 1",
numericInput("number", "Enter a number:", value = 1)
)
)
)
shinyApp
function:server <- function(input, output) {}
shinyApp(ui, server)
Now you should see a shinyglide screen with a numericInput as the input element. You can add more slides to the glide layout using the slide
function, and include more input/output elements or any other Shiny UI components in each slide.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-05-29 19:48:11 +0000
Seen: 18 times
Last updated: May 29 '23