Usage
colourWidget(value = "white", showColour = c("both", "text", "background"), palette = c("square", "limited"), allowedCols, width = "300px", height = "35px", elementId = NULL)
Arguments
value
Initial value (can be a colour name or HEX code)
showColour
Whether to show the chosen colour as text inside the input,
as the background colour of the input, or both (default).
palette
The type of colour palette to allow the user to select colours
from. square
(default) shows a square colour palette that allows the
user to choose any colour, while limited
only gives the user a
predefined list of colours to choose from.
allowedCols
A list of colours that the user can choose from. Only
applicable when palette == "limited"
. The limited
palette
uses a default list of 40 colours if allowedCols
is not defined.
width
Custom width for the input field.
height
Custom height for the input field.
elementId
Use an explicit element ID for the widget (rather than an
automatically generated one).