daattali/shinyjs

Add support for Shiny JS events

Open

#168 aperta il 8 giu 2018

Vedi su GitHub
 (8 commenti) (1 reazione) (0 assegnatari)R (104 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (521 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Hi Dean, long time no see ;) I can't say that enough: your package is awesome! The only thing I'm currently missing is the support for Shiny events. Right now I'm implementing king of a busy indicator which can be easily set-up with a custom JS code as shown in the example. Yet, it would be really great if something along the following lines would be possible - what do you think?

Cheers, Andrzej

library(shinyjs)

shinyApp(
  ui = fluidPage(
    useShinyjs(),
    ...
    div(id = "loader")
    ),
  server = function(input, output) {
    ...
    onshiny("busy", show("loader"))
    onshiny("idle", hide("loader"))
  }
)

Guida contributor