selectImageInput: Add images to dropdown options

View source: R/input-selectImage.R

selectImageInputR Documentation

Add images to dropdown options

Description

This function works only with bootstrap for now

Usage

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.


datasketch/shinyinvoer documentation built on June 2, 2025, 2:14 a.m.