R/renderHeightSlider.R

renderHeightSlider = function( id, height )
{
    if ( is.null( height ) )
      return ( NULL )

    if ( length( height ) != 2 )
      return ( NULL )

    return (
        sliderInput(
          paste0( id,".height"),
          "height",
          height[1],
          height[2],
          ( height[1] + height[2] )/2
        )
    )
}
GregorDeCillia/shinyLikert documentation built on May 6, 2019, 6:36 p.m.