Comments (2)
Hi,
Sorry for the belated answer. I've added a size
argument in dropdownButton
function to use Bootstrap class (http://getbootstrap.com/css/#buttons-sizes), so you can use xs
, sm
, default
or lg
to size the button :
library("shiny")
library("shinyWidgets")
ui <- fluidPage(
tags$h2("dropdown button"),
fluidRow(
column(
width = 4, offset = 2,
dropdownButton("with size = 'xs'", circle = TRUE, status = "default", size = "xs", icon = icon("question")),
dropdownButton("with size = 'sm'", circle = TRUE, status = "default", size = "sm", icon = icon("question-sign", lib = "glyphicon")),
dropdownButton("with size = 'default'", circle = TRUE, status = "default", size = "default", icon = icon("question-sign", lib = "glyphicon")),
dropdownButton("with size = 'lg'", circle = TRUE, status = "default", size = "lg", icon = icon("question-sign", lib = "glyphicon"))
),
column(
width = 4,
dropdownButton("with size = 'xs'", circle = FALSE, label = "Info", status = "default", size = "xs", icon = icon("question")),
dropdownButton("with size = 'sm'", circle = FALSE, label = "Info", status = "default", size = "sm", icon = icon("question-sign", lib = "glyphicon")),
dropdownButton("with size = 'default'", circle = FALSE, label = "Info", status = "default", size = "default", icon = icon("question-sign", lib = "glyphicon")),
dropdownButton("with size = 'lg'", circle = FALSE, label = "Info", status = "default", size = "lg", icon = icon("question-sign", lib = "glyphicon"))
)
)
)
server <- function(input, output, session) {
}
shinyApp(ui = ui, server = server)
from shinywidgets.
Nice, thanks for the quick update!
from shinywidgets.
Related Issues (20)
- pickerInput and bslib with bootstrap version 5 - Deselection does not work if 'maxOptions = 1' HOT 2
- materialSwitch label issue HOT 2
- [Feature Request]Listbox with multi-select function and sorting function
- [BUG]When using lapply() to batch generate dropMenu, it doesn't work very well HOT 2
- Why does pickerInput liveSearch option not work? HOT 2
- How to avoid useShinydashboard() change any CSS HOT 1
- Remove !important rule inline in searchInput() HOT 1
- Dropdown closes after running updatePickerInput HOT 1
- AirDatepickerInput: Сhanging the date from the keyboard in the input does not update the calendar HOT 1
- `pickerInput` ADA improvements HOT 1
- `numericRangeInput` ADA improvements HOT 3
- airDatepicker shifts time by loosing timezone information
- setShadow deprecation warning shows up in UI HOT 1
- Screen moves when confirmSweetAlert is closed. HOT 1
- pickerGroupUI() breaks in bslib HOT 7
- `materialSwitch` label not centered vertically with switch in `bs4dash` HOT 1
- add timezone option to airdatepicker
- ShinyWidgets - updateAirDateInput
- pickerInput: strange behaviour with disabling individual options when some are grouped HOT 2
- updateProgressBar shows [object Object] when title is of class shiny.tag HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shinywidgets.