R Shiny - Numeric Input without Selectors

前端 未结 2 2052
梦如初夏
梦如初夏 2021-01-22 05:38

Is there a way to have a numeric input without the selectors? Every time the slider is pressed, all calculation in my app occur, so it could get choked up by a user easily. Poss

2条回答
  •  误落风尘
    2021-01-22 06:23

    In your ui.R file, use inputs like the following:

    shinyUI(pageWithSidebar(
        sidebarPanel(
            textInput("text", "Enter Text:", "Default Text"),
            numericInput("num1", "Please Enter a Number:", 42)
          )
    ))
    

    Hope that helps.

提交回复
热议问题