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

# Create a slider input 

getSliderInput<- 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(
		sliderInput(inputID,
								mylabel, 
								value = inputConf$value, 
								min   = inputConf$min, 
								max   = inputConf$max, 
								step  = inputConf$step,
								width = "500px",
								post = ""
		)
	)
  
  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.