demo/rp.combo.r

callback <- function(panel)
{
  print(panel$option)
}

panel <- rp.control()
rp.combo(panel, option, "Pick an option:", c("Option1","Option2","Other options"), action=callback)

Try the rpanel package in your browser

Any scripts or data that you put into this service are public.

rpanel documentation built on Feb. 16, 2023, 10:37 p.m.