| inline_number | R Documentation |
A single line numeric input similar to shiny::numericInput() that can be
included in an inline() wrapper.
inline_number(
id,
value,
min = NULL,
max = NULL,
step = NULL,
default = value,
placeholder = "Enter number",
meaning = NULL
)
id |
The |
value |
The initial number. |
min, max |
Minimum and maximum values. Use |
step |
A step value for incrementing and decrementing the number using the up or down arrow keys or with the clickable arrows on the widget. The Page Up and Page Down keys increment or decrement the number by 10 steps, and the Home and End keys set the number to the minimum or maximum respectively. The default step is 1. |
default |
A default value to be used if the input is invalid or empty. |
placeholder |
The character string or HTML element that will appear in the textbox when it is empty, as a prompt. |
meaning |
A descriptive label, for people using assistive technology such as screen readers. |
An inline widget to be included in an inline() wrapper.
shiny::numericInput for how the number input works with your Shiny server.
ui <- bslib::page_fixed(
shiny::h1("Breakfast app (beta)"),
inline("Make me an omelette with ",
inline_number("eggs", 6, min = 2, max = 12, step = 1,
placeholder = "6 (default)", meaning = "Number of eggs"),
" eggs.")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.