datasketch / shinyinvoer Goto Github PK
View Code? Open in Web Editor NEWShiny inputs
License: Other
Shiny inputs
License: Other
Show people what it is that you can do with this package.
It can be as simple as adding screenshots of the latin-r conference
Selector de botones independientes dentro de una misma clase
Por ejemplo:
buttonSelector(id = list("pregunta_1", pregunta_2"", "pregunta_3'),
label = list("label pregunta 1", label pregunta 2"", "label pregunta 3"),
active = "pregunta_1", class = "style_button", style = "font_size = 0.85rem;")
Al seleccionar en shiny debería salir el id del botón activado
crear un input donde se puedan ingresar listas de paletas de colores y cuya respuesta en Shiny sea el nombre de la lista de color.
Eg:
Entonces, supongamos que el id de la primer selecciones es "List_color_1", al seleccionar esta el print en Shiny debería ser "List_color_1" o la paleta de colores de esa lista.
This shoud be done in JS not in R
actual_but <- reactiveValues(active = 'bar')
observe({
viz_rec <- c("bar", "line", "pie", "donut", "treemap", "bubbles")
if (is.null(viz_rec)) return()
if (is.null(input$viz_selection)) return()
if (!( input$viz_selection %in% viz_rec)) {
actual_but$active <- viz_rec[1]
} else {
actual_but$active <- input$viz_selection
}
})
so that it can work as a checkbox input or selectize
There is a lag. The last clicked image is not returning properly when rendered in the shiny UI
shinyinvoer::buttonImageInput
It only works for the param selected for now
@ddazal es un input de lista de atributos como se muestra a continuación
pero donde se puedan modificar sus estilos y se pueda determinar el máximo de ítems seleccionado.
Muchas gracias
When creating images with empty choices make sure updateImageInput creates the new options
See sample app
shinyinvoer/inst/examples/app-selectImageInput.R
Lines 66 to 67 in 4bce847
es importante hacer un textInput acompañado de un botón de activación, con la finalidad de que solo se renderize el texto cuando
se de click en el botón
the value stored as input in a colorPaletteInput doesn't have the preceding #: 484848 instead of #484848. This can be cumbersome.
If n_max color is reached remove or disable (+) button.
When the number of colors is fixed (need to add a new parameter for this) remove (x) and (+) buttons.
Do we need a min_colors too? If so, make sure to remove the remove color button (x) when the minimum number of colors is reached.
widget con selector multiple dentro de la lista como se muestra en la siguiente imagen
Ej de shinyWidgets https://shinyapps.dreamrs.fr/shinyWidgets/
If there is more than one dateRangeInput
in an app, the registered value --the value stored in the input
list-- is the value of the latest input rendered for every one of these inputs.
Minimal example:
library(shiny)
library(shinyinvoer)
ui <- fluidPage(dateRangeInput("fechas_a", "Fechas a", "2020-02-02", "2021-02-02", "2020-02-02", "2021-02-02", "", ""),
dateRangeInput("fechas_b", "Fechas b", "2000-12-02", "2001-12-02", "2000-12-02", "2001-12-02", "", ""),
verbatimTextOutput("f"))
server <- function (input, output) {
output$f <- renderPrint(list("Fechas a" = input$fechas_a, "Fechas b" = input$fechas_b))
}
shinyApp(ui, server)
the loading and done icons are not showing up
If yes should I try to do it?
when using dropdownActionInput in shinyapp other outputs (such as highcharts, visNetwork) and even inputs (colorPaletteInput) do not work well
@CamilaAchury
@ddazal
@jpmarindiaz
For instance:
Need to check that choices_list is not accessing a selected=NULL element
if(is.null(placeholder) & !is.null(selected)){
x <- choices_list[[selected]]
placeholder <- shiny::div(class = "selectImage", shiny::img(src=x$image), x$label)
}
In particular times it could be useful to have a label that describes for what the toggle switch stands for
Remove format argument, to be extracted from file extension.
path = NULL, if not paste to output
create image path with file.path, not paste
Taken from #30
Do we need a min_colors too? If so, make sure to remove the remove color button (x) when the minimum number of colors is reached.
Personalización de Botones:
Cada botón puede tener un id, un label y un icono.
Opción de Dropdown:
Se puede añadir un dropdown a todos o a algunos botones, especificando id y label.
Personalización de Estilo:
Los botones son personalizables, permitiendo agregar clases CSS.
Las Opciones de estilo predeterminadas incluyen:
Color del botón
Color del botón cuando está activo
Radio de borde
Color del borde
Ancho Predeterminado:
Por defecto, los botones ocupan el ancho completo de la pantalla.
Ejemplo del Widget:
Selectize with font preview
Do it when ctypes can also be guessed in js
Taken from #30
When the number of colors is fixed (need to add a new parameter for this) remove (x) and (+) buttons.
Do I work on this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.