inst/shiny-squid/source/inputs/get_select_input.R

# Create a select input

getSelectInput <- function(inputID, inputConf, placement="top", trigger="hover") 
{    
  
  if(inputConf$infoTxt != ""){
  	mylabel  <- c(inputConf$label,getIcon(inputConf$infoTxt, placement, trigger))
  }else{
    mylabel <- inputConf$label
  }
	
	myOutput <-  span(
		selectInput(inputID, 
								mylabel, 
								inputConf$value)
	)
	
	return(myOutput)
}

Try the squid package in your browser

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

squid documentation built on Jan. 22, 2022, 1:06 a.m.