Web Components Question about web components and ...
# gooddata-cloud
d
Web Components Question about web components and INSIGHTS with Vue. I've been playing around with them. 1. Can can't create click throughs like we have in Gooddata. Lets say from a bar graph. Where we select one bar and it updates the insight to a time series graph with only that bar dimension a. What about to another page that has embedded dashboard? Could not find it in the documentation With Web component dashboards I noticed that our clickthroughs to dashboard are visible but they don't work. Is there an event we can get that we could handle that would switch to a new template with that dashboard if clicked? Couldn't find documentation Iframes If we Embedded Iframes, and there is a click through - can we instead of it loading the next dashboard in the same iframe load a new Vue Template that has that dashboard so that its the same experience each time and have the correct filters. Thought maybe this: https://help.gooddata.com/doc/free/en/expand-your-gooddata-platform/gooddata-integrat[…]ns/embed-a-dashboard/communication-with-embedded-dashboards/ -> loadingStarted
m
Sorry for the delay in getting back to you on this one Doug - We are checking this for you and will get back to you ASAP with more details
d
Thanks @Michael Ullock - let me know if you need any clarification
r
Heya Doug, Radek from the GoodData Technical team - the question has been passed to us. Essentially, you were on the right track with the communication with the dashboards. Dashboards send events whenever interacted with, and you can listen to those and react to them accordingly - described in more detail with an example here: https://help.gooddata.com/doc/free/en/expand-your-gooddata-platform/gooddata-integrat[…]ments-into-your-applications/sample-html-for-drill-eventing/ 🙂
d
OK, thanks for the link. Just as an FYI, the document says its out of date. It is confusing when this happens but clicks not to the most up to date one. I don't know unless you tell me if its still relevant information This I believe only answers my question's for Iframs. However, I had similar question for Web Components - is there an example with Web Component dashboards? Also, I had a question with Web Components Insights and clickthroughs - if that is at all possible. It doesn't seem like it is easily done, but I wanted to conform if it is possible how would you go about doing it
👀 1
r
You're right Doug, the notification can be a little confusing - it's bulk applied to everything touching GoodData Platform, however some of the concepts are shared between the Platform and the Cloud 🙂 The eventListener part should still be applicable for Web Components, you just have to attach an eventListener to the component itself! Clickthroughs are unfortunately a different story, those are limited by the embedding method, but you should still be able to catch the relevant events regardless.
d
What events are you referring to when you said "should still be able to catch the relevant events regardless."
r
Well, the theory is that clicking in an embedded Dashboard generates an event - regardless of whether or not that event does anything, it's possible to catch it using an event listener and code your own reaction to a user click, utilizing the details provided in the event to direct them to the right space within your own app. 👍