Text input group and custom widgets append to left ar/and right
textInputGroup(
textId,
label = "",
value = "",
placeholder = "enter text",
left_text = NULL,
right_text = NULL,
style = "width: 100%;"
)
text box id
text label for this input group
default value for the text input
default placeholder text for the text input if no value
text or icon add to the left side
text or icon add to the right side
additional style add to the group
text input group component
If no text is specified for both left and right, the return is almost identical to clearableTextInput
if(interactive()){
ui <- fluidPage(
textInputGroup("id1", "left", left_text = "a"),
textInputGroup("id2", "right", right_text = "b"),
textInputGroup("id3", "both", left_text = "$", right_text = ".00"),
textInputGroup("id4", "none"),
textInputGroup("id5", "icon", left_text = icon("house")),
)
server <- function(input, output, session) {
}
shinyApp(ui, server)
}