Un-hide parameter chip when `runtimeParameters` is passed
Background:
The React/JavaScript/TypeScript app runs a liveboard embed using the
@thoughtspot/visual-embed-sdk
library. The code passes a few actions.
Aim:
When the developer passes filterByParameters
, and the user views the liveboard, then the passed parameter's chip is hidden.
Issue:
From our understanding, hiding the chip is the default behaviour (mentioned here in the NOTE section https://developers.thoughtspot.com/docs/runtime-params). However, we would like to unhide the parameter chip since the default value should be passed but then the user should be able to change the value. So, how can we unhide the parameter chip when passing a runtime parameter?2 Replies
RuntimeFilters and runtimeParameters do act this way as we have provided in the documentation.
One workaround I can think of, to update the parameters in the chip is using the updateFilters and updateParameters events. https://developers.thoughtspot.com/docs/Enumeration_HostEvent#_updateparameters
HostEvent
Event types that can be triggered by the host application to the embedded ThoughtSpot app.
@shikharTS how should I call the
updateFilters
in the React library (i.e., @thoughtspot/visual-embed-sdk
on v1.33.3 (latest version as of today)?
My attempt: