The first form field is numericInput
and I can change its size with tags$style
.
The second form field is autonumericInput
. tags$style
can change this field's color but not its size. How do I change the size of this value. In this case, it's the number 255.
library("shiny")
library("bslib")
library("shinyWidgets")
ui <- bootstrapPage(
# Format Travel Summary
tags$head(
tags$style("#first{
color: green;
font-size: 9px;
font-style: italic;}"
)
),
# https://bootswatch.com/journal/
theme = bs_theme(version = 5, bootswatch = "flatly", "font_scale" = 1.0),
div(class = "container-fluid",
div(class = "row",
div(class = "col-4",
HTML('<b>First</b>'),
numericInput(
inputId = "first",
label = NULL,
value = 55
)
),
div(class="col-4",
HTML('<b>Second</b>'),
autonumericInput(
inputId = "second",
label = NULL,
value = 255,
currencySymbol = "$",
currencySymbolPlacement = "p",
decimalPlaces = 0,
minimumValue = 0,
maximumValue = 9000,
width = "160px"
),
),
)
)
)
server <- function(input, output) {
}
shinyApp(ui = ui, server = server)```