I use this Shinyalert in my Shiny app:
library(shiny)
library(shinyalert)
ui <- fluidPage(
useShinyalert()
)
server <- function(input, output) {
shinyalert(
title = " ",
type = "info",
confirmButtonText = "ok",
showCancelButton = TRUE,
showConfirmButton = TRUE,
confirmButtonCol = "#6DBADE",
size = "m",
closeOnEsc = TRUE,
closeOnClickOutside = TRUE,
animation = TRUE,
html = TRUE,
text =
div(HTML("
<form style = ' display:flex; flex-direction: row; justify-content: center; align-items: center' action=''>
<div style='border: 5px black;'>
<input type='text'name='add_nosha_tohen' autocomplete='off' id='add_nosha_tohen' value='' dir='rtl' style='border-color: black; font-size: 12px;height: 45px; width: 400px; display: block;'/></input>
<input type='text'name='add_nosha_tohen' autocomplete='off' id='add_nosha_tohen' value='' dir='rtl' style='border-color: black; font-size: 12px;height: 45px; width: 400px; display: block;'/></input>
<input type='text'name='add_nosha_tohen' autocomplete='off' id='add_nosha_tohen' value='' dir='rtl' style='border-color: black; font-size: 12px;height: 45px; width: 400px; display: block;'/></input>
</div>
</form>
"
))
)
}
shinyApp(ui, server)
How can I switch between the fields by Tab? I didn't find any solution, I want to click on tab in my keyboard and go to the second field