The functions creates HTML tag definitions of its representation based on the parameters supplied. Currently, two UI can be created for the user to choose either (a) colors from a given color scheme, or (b) choose one or more single colors.
colorPickerUI(
id,
label = "Color scheme",
custom = FALSE,
multiple = FALSE,
show.reverse = TRUE,
show.scaleoptions = TRUE,
show.transparency = TRUE
)
The ID of the modules namespace.
Either a character vector of length one with the label for the color scheme dropdown, or a character vector containing labels of the single colors.
Boolean if TRUE custom colors can be selected (Default = FALSE).
Boolean value, if set to TRUE custom colorpalettes can be made. Only if custom = TRUE (Default = FALSE).
Logical, whether or not to show the reverse switch (Default = TRUE).
Logical, whether or not to show color scaling option winsorize (Default = TRUE).
Logical, whether or not to show the transparency slider (Default = TRUE).
A list with HTML tags from tag
.