inst/hbcdtlfb/www/R/outputs/radio_buttons_period.R

output$radio_buttons_period <- renderUI({
  req(tlfb_v())
  
  if(tlfb_v() == 1)  choices <- c("Routine", "Pre-LMP", "Post-LMP", "Last Week")
  if(tlfb_v() == 2)  choices <- c("Routine", "Last Two Weeks Before Delivery")
  
  radioGroupButtons(
    "nature", 
    NULL,
    choices = choices,
    selected = "Routine", 
    individual = FALSE,
    checkIcon = list(yes = icon("ok", lib = "glyphicon")),
    width = "100%"
  )
})
ucsd-dsm/hbcd-tlfb documentation built on July 10, 2022, 5:46 p.m.