I am using 'radioGroupButtons' of the shinyWidgets package with the option individual = TRUE. The buttons are positioned tightly side-by-side.
I have two questions. Is is possible to get more space between the buttons? Is is also possible to get the button labels preceded by a icon (Glyphicon, Font Awesome)?
It would be great if it would look like this:
My code is as follows:
library(shiny)
library(shinyjs)
library(shinyWidgets)
ui <- fluidPage(
useShinyjs(),
radioGroupButtons(
inputId = "id000",
label = NULL,
choices = c("Text", "File", "Web"),
individual = TRUE,
selected = character(0))
)
server <- function(input, output, session)
{
observeEvent(input$id000, alert(input$id000), ignoreInit = TRUE)
}
shinyApp(ui = ui, server = server)