selectImageInput: Add images to dropdown options

Description Usage Arguments

View source: R/input-selectImage.R

Description

This function works only with bootstrap for now

Usage

1
2
3
4
5
6
7
8
9
selectImageInput(
  inputId,
  label,
  choices,
  images = NULL,
  selected = 1,
  placeholder = NULL,
  width = 120
)

Arguments

inputId

The input slot that will be used to access the value.

choices

List of values to select from, when named the names are appended to the right of the image.

images

List of image location that can be put in a src attribute.

selected

Selected image, defaults to first one.

placeholder

HTML to render as placeholder, overrides selected param.

width

width in of input.


jpmarindiaz/shi18ny documentation built on March 31, 2021, 5:15 p.m.