Hi TS, is there a way to support the
Hi TS, is there a way to support the HostEvent.Pin action without making this a visible action? Right now it seems like we need to enable it as a visible action, but the CSS we apply is not loaded initially and there is a janky flash of the pin button. Style block and video below...
18 Replies
Hey @Leslie Chiang - Can you attach the video ?
attaching
Is this search data embed @Leslie Chiang ?
Yes, this is search embed @utsav.kapoor
We are working on this feature to to pin items programitcally. Let me check if we can have a workaround for this
hi @utsav.kapoor any update here on timing or workaround?
Can you please try out:
'.first-pin-module__pinButton': {
visibility: 'hidden',
width: '0',
},
hi @utsav.kapoor - that snippet does not hide the button at all. I don't see that class attached to any of the related DOM elements.
@Leslie Chiang - What version you are on ? We might have a mismatch in the version ?
It looks like we are on
1.27.8
and thoughtspot version ?
We are on
10.1.0.cl-215
Gotcha. Let me try with that version
Hi @utsav.kapoor - any update here?
@Leslie Chiang - Sorry, this got missed. Can you please pass Action.Pin to hiddenActions Array ?
Documentation:https://developers.thoughtspot.com/docs/Interface_SearchViewConfig#_hiddenactions
We are using visibleActions - if Pin is not in visible actions, then the embed does not handle HostEvent.Pin correctly. (see original message)
Please add the following in your search embed:
Additionally please have the following classes added in Unstable rules of your CSS:
Let me know if this doesnt work for you in which case we will have a call so we can check how to achieve this
Thank you! This works to hide the flash of the Pin button.