Title: event_data not working for Shiny Modules? · Issue #659 · plotly/plotly.R · GitHub
Open Graph Title: event_data not working for Shiny Modules? · Issue #659 · plotly/plotly.R
X Title: event_data not working for Shiny Modules? · Issue #659 · plotly/plotly.R
Description: Hi, I tried a couple combinations but couldn't get it to work, please advise: ` library(shiny) library(shinyBS) library(plotly) Module.testUI <- function(id){ ns <- NS(id) plotlyOutput(ns('ply_main')) } Module.test <- function(input, out...
Open Graph Description: Hi, I tried a couple combinations but couldn't get it to work, please advise: ` library(shiny) library(shinyBS) library(plotly) Module.testUI <- function(id){ ns <- NS(id) plotlyOutput(ns('ply_main...
X Description: Hi, I tried a couple combinations but couldn't get it to work, please advise: ` library(shiny) library(shinyBS) library(plotly) Module.testUI <- function(id){ ns <- NS(id) plotlyOutput(ns...
Opengraph URL: https://github.com/plotly/plotly.R/issues/659
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"event_data not working for Shiny Modules?","articleBody":"Hi,\n\nI tried a couple combinations but couldn't get it to work, please advise:\n\n`\nlibrary(shiny)\nlibrary(shinyBS)\nlibrary(plotly)\n\nModule.testUI \u003c- function(id){\n ns \u003c- NS(id)\n plotlyOutput(ns('ply_main'))\n}\n\nModule.test \u003c- function(input, output, session, sess) {\n ns \u003c- session$ns\n\n output$ply_main \u003c- renderPlotly({\n df1 \u003c- data.frame(x = 1:10, y = 1:10)\n plot_ly(df1, x = ~x, y = ~y) %\u003e% add_markers()\n })\n\n observe({\n # eventdata \u003c- event_data(ns('plotly_click'))\n eventdata \u003c- event_data('plotly_click',source = ns('ply_main'))\n # eventdata \u003c- event_data('plotly_click')\n isolate({\n print(eventdata)\n })\n })\n}\n\nui \u003c- fluidPage(\n tagList(\n Module.testUI('test'),\n Module.testUI('test2')\n )\n)\n\nserver \u003c- function(input, output) {\n\n callModule(Module.test,'test', sess)\n\n callModule(Module.test,'test2', sess)\n}\n\nshinyApp(ui = ui, server = server)\n`\n","author":{"url":"https://github.com/happyshows","@type":"Person","name":"happyshows"},"datePublished":"2016-07-27T17:17:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":17},"url":"https://github.com/659/plotly.R/issues/659"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:596e60db-7be1-380d-781c-18f7dd7b73c0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A99C:12F083:268AA68:3769E9C:6A58F464 |
| html-safe-nonce | 0f49c5fd6f88171fe7f5ca66be1c28ae3e384334a18b5eb1727d51ae418e6539 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTlDOjEyRjA4MzoyNjhBQTY4OjM3NjlFOUM6NkE1OEY0NjQiLCJ2aXNpdG9yX2lkIjoiMjM3MjMzNzAwNzQ3OTgxMzIyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4e718d96c6e3695fcb9e07ca7477144d576e89e659632ca2b557503aa22f0090 |
| hovercard-subject-tag | issue:167908236 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.R/659/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9c4679a5ff741a631418eeafc3b78ed04d11825b94c734c8076cb018aa0d266d/plotly/plotly.R/issues/659 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9c4679a5ff741a631418eeafc3b78ed04d11825b94c734c8076cb018aa0d266d/plotly/plotly.R/issues/659 |
| og:image:alt | Hi, I tried a couple combinations but couldn't get it to work, please advise: ` library(shiny) library(shinyBS) library(plotly) Module.testUI <- function(id){ ns <- NS(id) plotlyOutput(ns('ply_main... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | happyshows |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.R git https://github.com/plotly/plotly.R.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 14579179 |
| octolytics-dimension-repository_nwo | plotly/plotly.R |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14579179 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.R |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width