selectLangInput: Add images to dropdown options

Description Usage Arguments

View source: R/selectLangInput.R

Description

This function works only with bootstrap for now. Borrowed from the package shinyinvoer.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
selectLangInput(
  inputId,
  label,
  langs,
  flags = NULL,
  show_flags = TRUE,
  selected = NULL,
  placeholder = NULL,
  width = 100
)

Arguments

inputId

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

placeholder

HTML to render as placeholder, defaults to empty div.

width

width in of input.

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.


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