| knobInput {shinyWidgets} | R Documentation |
Knob Input
knobInput(inputId, label, value, min = 0, max = 100, step = 1,
angleOffset = 0, angleArc = 360, cursor = FALSE,
thickness = NULL, lineCap = c("default", "round"),
displayInput = TRUE, displayPrevious = FALSE,
rotation = c("clockwise", "anticlockwise"), fgColor = NULL,
inputColor = NULL, bgColor = NULL, readOnly = FALSE, skin = NULL,
width = NULL, height = NULL, immediate = TRUE)
inputId |
The |
label |
Display label for the control, or NULL for no label. |
value |
Initial value. |
min |
Minimum allowed value, default to |
max |
Maximum allowed value, default to |
step |
Specifies the interval between each selectable value, default to |
angleOffset |
Starting angle in degrees, default to |
angleArc |
Arc size in degrees, default to |
cursor |
Display mode "cursor", don't work properly if |
thickness |
Gauge thickness, numeric value. |
lineCap |
Gauge stroke endings, 'default' or 'round'. |
displayInput |
Hide input in the middle of the knob ( |
displayPrevious |
Display the previous value with transparency ( |
rotation |
Direction of progression, 'clockwise' or 'anticlockwise'. |
fgColor |
Foreground color. |
inputColor |
Input value (number) color. |
bgColor |
Background color. |
readOnly |
Disable knob ( |
skin |
Change Knob skin, only one option available : 'tron'. |
width |
The width of the input, e.g. |
height |
The height of the input, e.g. |
immediate |
If |
Numeric value server-side.
updateKnobInput for updating the value server-side.
## Not run:
if (interactive()) {
library("shiny")
library("shinyWidgets")
ui <- fluidPage(
knobInput(
inputId = "myKnob",
label = "Display previous:",
value = 50,
min = -100,
displayPrevious = TRUE,
fgColor = "#428BCA",
inputColor = "#428BCA"
),
verbatimTextOutput(outputId = "res")
)
server <- function(input, output, session) {
output$res <- renderPrint(input$myKnob)
}
shinyApp(ui = ui, server = server)
}
## End(Not run)