I am looking to customize the layout of an actionButton in a Shiny app using a CSS file. The action button is defined in server.R and used as uiOutput() in ui.R as shown below:
server.R
shinyServer(function(input, output) {
output$ActionButtonExample <- renderUI({
actionButton(
inputId = "ActionButtonExample",
label = "Accept",
icon = icon("check"),
width = '50%',
style = 'float:right;'
)
})
})
ui.R
# Define UI for application that draws a histogram
shinyUI(fluidPage(
# Application title
titlePanel("Old Faithful Geyser Data"),
# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(
sliderInput("bins",
"Number of bins:",
min = 1,
max = 50,
value = 30)
),
# Show a plot of the generated distribution
mainPanel(
uiOutput("ActionButtonExample")
)
)
))
Can someone provide guidance on how to customize the button using CSS similar to the example provided here: ?