daattali/shinyjs

Add support for Shiny JS events

開放

#168 建立於 2018年6月8日

 (8 則留言) (1 個反應) (0 位負責人)R (118 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (751 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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"))
  }
)

貢獻者指南