Closed cristianvaldez closed 5 years ago
Hello,
Can you provide an example and your sessionInfo
please? With last {shinyWidgets} version and this example, it works fine :
---
title: "Sidebar"
output: flexdashboard::flex_dashboard
runtime: shiny
---
Inputs {.sidebar}
-------------------------------------
```{r}
library(shinyWidgets)
pickerInput(
inputId = "p1",
label = "Select all option",
choices = rownames(mtcars),
multiple = TRUE,
options = list(`actions-box` = TRUE)
)
![image](https://user-images.githubusercontent.com/4415580/59279386-1cd74900-8c64-11e9-8a9b-09eb077b90e5.png)
Dear @pvictor, the version is shinyWidgets_0.4.5, here is my session info
`R version 3.4.4 (2018-03-15) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 18.04.1 LTS
Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1 LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1
locale:
[1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8 LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8
[6] LC_MESSAGES=C.UTF-8 LC_PAPER=C.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C
attached base packages: [1] splines stats graphics grDevices utils datasets methods base
other attached packages:
[1] tsfeatures_1.0.1 furrr_0.1.0 future_1.12.0 formattable_0.2.0.1
[5] caret_6.0-81 lattice_0.20-35 tidyquant_0.5.5 quantmod_0.4-13
[9] TTR_0.23-4 PerformanceAnalytics_1.5.2 xts_0.11-2 zoo_1.8-4
[13] timetk_0.1.1.1 sweep_0.2.1.1 tseries_0.10-46 modelr_0.1.4
[17] broom_0.5.1 gam_1.16 foreach_1.4.4 data.table_1.12.0
[21] moments_0.14 lubridate_1.7.4 aws.s3_0.3.12 dbplyr_1.3.0
[25] DT_0.6 highcharter_0.7.0 shinyjs_1.0 shinyWidgets_0.4.5
[29] shinythemes_1.1.2 shiny_1.2.0 forecast_8.5 forcats_0.4.0
[33] stringr_1.4.0 dplyr_0.8.0.1 purrr_0.3.0 readr_1.3.1
[37] tidyr_0.8.2 tibble_2.0.1 ggplot2_3.1.0 tidyverse_1.2.1
[41] quadprog_1.5-7 RPostgreSQL_0.6-2 DBI_1.0.0
loaded via a namespace (and not attached):
[1] colorspace_1.4-0 class_7.3-14 sapa_2.0-2 base64enc_0.1-3 rstudioapi_0.9.0 listenv_0.7.0
[7] prodlim_2018.04.18 fansi_0.4.0 xml2_1.2.0 codetools_0.2-15 knitr_1.21 rlist_0.4.6.1
[13] jsonlite_1.6 compiler_3.4.4 httr_1.4.0 backports_1.1.3 assertthat_0.2.0 Matrix_1.2-12
[19] lazyeval_0.2.1 cli_1.0.1 later_0.8.0 htmltools_0.3.6 tools_3.4.4 igraph_1.2.4
[25] gtable_0.2.0 glue_1.3.0 reshape2_1.4.3 Rcpp_1.0.0 cellranger_1.1.0 fracdiff_1.4-2
[31] urca_1.3-0 nlme_3.1-131 iterators_1.0.10 lmtest_0.9-36 timeDate_3043.102 xfun_0.5
[37] gower_0.2.0 globals_0.12.4 rvest_0.3.2 mime_0.6 ifultools_2.0-5 MASS_7.3-49
[43] scales_1.0.0 ipred_0.9-8 hms_0.4.2 promises_1.0.1 parallel_3.4.4 yaml_2.2.0
[49] curl_3.3 aws.signature_0.4.4 rpart_4.1-13 ForeCA_0.2.4 stringi_1.3.1 lava_1.6.5
[55] rlang_0.3.1 pkgconfig_2.0.2 evaluate_0.13 splus2R_1.2-2 recipes_0.1.4 htmlwidgets_1.3
[61] tidyselect_0.2.5 plyr_1.8.4 magrittr_1.5 R6_2.4.0 generics_0.0.2 pillar_1.3.1
[67] haven_2.1.0 whisker_0.3-2 withr_2.1.2 survival_2.41-3 nnet_7.3-12 crayon_1.3.4
[73] Quandl_2.9.1 utf8_1.1.4 rmarkdown_1.11 grid_3.4.4 readxl_1.3.0 ModelMetrics_1.2.2
[79] digest_0.6.18 xtable_1.8-3 httpuv_1.4.5.1 stats4_3.4.4 munsell_0.5.0 `
It works, the thing is that, when the text is larger, instead of continuing with and enter, it continuous on the screen, and you have to drag to the right, the shiny stard selectInput does the entering thing
Hello, Maybe look here for a potential solution : https://stackoverflow.com/questions/51355878/how-to-text-wrap-choices-from-a-pickerinput-if-the-length-of-the-choices-are-lo
Victor
When using a pickerinput in a flexdashboard the pickerinput expands more than expected.
Like the following image