Customising App Embed | HP

am going to customize the custom menu like this .. when ever the user click the menu i want render the respective TS eambed page
No description
6 Replies
Justin Mathew
Justin Mathew15mo ago
hey @Sathish , you can do that by having a menu outisde the tsembed , the menu then can control the liveboard id to show check out this demo : https://codesandbox.io/s/big-tse-react-demo-forked-wl5vq4?file=/src/App.tsx a simpler one : https://codesandbox.io/s/authmethod-testing-m8l3cm
sastaachar
CodeSandbox
Big TSE React Demo (forked) - CodeSandbox
Big TSE React Demo (forked) by sastaachar using @inovua/reactdatagrid-enterprise, @kanaries/graphic-walker, @thoughtspot/rest-api-sdk, @thoughtspot/visual-embed-sdk, antd, lodash, prop-types, react, react-dom
justin_mathew
CodeSandbox
AuthMethod testing - CodeSandbox
AuthMethod testing by justin_mathew using @thoughtspot/rest-api-sdk, @thoughtspot/visual-embed-sdk, loader-utils, react, react-dom, react-router, react-router-dom, react-scripts
bill_da_golfer
bill_da_golfer15mo ago
@Sathish there is a pretty docs page on how to create the menu in these scenarios. https://developers.thoughtspot.com/docs/full-app-customize#_customize_the_thoughtspot_top_menu
Customize full application embedding
Customize full application embedding
Sathish
SathishOP15mo ago
the same way i have implemented in angular project but here when ever user clicking the custom nav bar link again its calling the TS Init method to get the AuthToken .. once we have AuthToken already why its calling Init method again and how to overcome that. am using authType: AuthType.TrustedAuthTokenCookieless, mechanism
No description
bill_da_golfer
bill_da_golfer15mo ago
The auth token is going to be called every time it renders. This is a design thing. It's actually needed for multi-page apps because the context of the pages is different, so we'd loose the token.
Sathish
SathishOP15mo ago
in this case its is taking more time to render the embed liveboard & answers.. @Justin Mathew after updating the SDK to 1.26.2 verison now getauthtoken calling once .. thanks for your inputs @Justin Mathew how much time TS token stored in cookie.
Justin Mathew
Justin Mathew15mo ago
@Sathish the token is not stored in cookie, but in memory so only till the time tab is open ,

Did you find this page helpful?