Prathic_BD
TFDThoughtSpot For Developers
•Created by Prathic_BD on 2/3/2025 in #dev-help
Prathic_BD - I am trying to add an event listen...
I have tinkered with this quite a bit but haven't been able to do what I need. I simply need to just log the payload for this emebedevent.ALL enum regardless of which page/route on my web app is used. All the pages on the web are essentially just the TS SDK.
Example Liveboard Subpage:
function Liveboard() {
const { id } = useParams<{ id: string }>()
return (
<section>
<Typography variant="h6" component="h2" gutterBottom>
</Typography>
<LiveboardEmbed
frameParams={{
height: 800
}}
liveboardId={id}
isLiveboardHeaderSticky={true}
showLiveboardTitle={true}
showLiveboardDescription={true}
onLoad={onLoad}
onRouteChange={onRouteChange}
/>
</section>
)
}
export default Liveboard
Dashboard subpage:
import { Typography } from '@connected-web/ui-components'
import { Page } from '@thoughtspot/visual-embed-sdk';
import { AppEmbed } from '@thoughtspot/visual-embed-sdk/react';
import { onLoad, onRouteChange } from '~/AppState'
function Dashboard() {
return (
<section>
<Typography variant="h6" component="h2" gutterBottom>
</Typography>
<AppEmbed
frameParams={{
height: 800,
}}
pageId={Page.Liveboards}
onLoad={onLoad}
onRouteChange={onRouteChange}
/>
</section>
)
}
export default Dashboard
and we have several pages like this (data, favorite, spotIQ, etc). I am not too familiar with TypeScript/React but is there someway for me to simply log these events or do I have to change how I am embedding you alls sdk? I did try the onALL but that didn't lead to anything that logging.
10 replies