R/Shinyで起動時にmodalで項目選択
easyClose
をFALSE
にしないとmodalの外を選択したら、modalが閉じてしまう。
library(shiny)
ui <- fluidPage(
)
server <- function(input, output, session) {
showModal(
ui = modalDialog(
selectInput(inputId = "select", label = "select", choices = colnames(iris)),
title = "modal",
footer = actionButton(
inputId = "modal",
label = "OK"),
easyClose = FALSE
)
)
observeEvent(eventExpr = input$modal, handlerExpr = {
removeModal()
})
}
shinyApp(ui = ui, server = server)
Author And Source
この問題について(R/Shinyで起動時にmodalで項目選択), 我々は、より多くの情報をここで見つけました https://qiita.com/yono2844/items/4c6f4f668d382a4450e8著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .