简体   繁体   English

我可以用Shiny observeEvent观察哪些事件?

[英]Which events can I observe with Shiny observeEvent?

observeEvent requires eventExpr. observeEvent需要eventExpr。 This is demonstrated simply in the examples with input$button etc. 这只是在带有输入$按钮等的示例中进行了演示。

However, with for editable datatables (DT) there is a different event call: input$<DT id>_cell_edit as demontrated here: https://github.com/rstudio/DT/pull/480 但是,对于可编辑的数据表(DT),有一个不同的事件调用: input$<DT id>_cell_edit在这里被删除: https//github.com/rstudio/DT/pull/480

I was wondering, what other events can be observed other than values and _cell_edit ? 我想知道除了值和_cell_edit之外还可以观察到哪些其他事件? I can't find anything related with this but I would like to listen to cell click (not edit or double click, hover, focus, etc.). 我找不到与此相关的任何内容,但我想听单元格点击(不编辑或双击,悬停,焦点等)。

I couldn't find anything in the reference or tutorials. 我在参考或教程中找不到任何内容。

I have found out by looking at the source files that there is also a "cell_clicked" event, which can be observed with input$dt_cell_clicked . 我通过查看源文件发现还有一个“cell_clicked”事件,可以通过input$dt_cell_clicked来观察。 Of course this doesn't completely answer the question. 当然,这并不能完全回答这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM