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...
style: {
customCSS: {
rules_UNSTABLE: {
'.pin-button-module__dualIntentPinButton': {
width: '0',
visibility: 'hidden',
},
},
},
},
style: {
customCSS: {
rules_UNSTABLE: {
'.pin-button-module__dualIntentPinButton': {
width: '0',
visibility: 'hidden',
},
},
},
},
18 Replies
utsav.kapoor
utsav.kapoor5mo ago
Hey @Leslie Chiang - Can you attach the video ?
Leslie Chiang
Leslie ChiangOP5mo ago
attaching
utsav.kapoor
utsav.kapoor5mo ago
Is this search data embed @Leslie Chiang ?
Leslie Chiang
Leslie ChiangOP5mo ago
Yes, this is search embed @utsav.kapoor
utsav.kapoor
utsav.kapoor5mo ago
We are working on this feature to to pin items programitcally. Let me check if we can have a workaround for this
Leslie Chiang
Leslie ChiangOP5mo ago
hi @utsav.kapoor any update here on timing or workaround?
utsav.kapoor
utsav.kapoor5mo ago
Can you please try out: '.first-pin-module__pinButton': { visibility: 'hidden', width: '0', },
Leslie Chiang
Leslie ChiangOP5mo ago
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.
utsav.kapoor
utsav.kapoor5mo ago
@Leslie Chiang - What version you are on ? We might have a mismatch in the version ?
Leslie Chiang
Leslie ChiangOP5mo ago
It looks like we are on 1.27.8
utsav.kapoor
utsav.kapoor5mo ago
and thoughtspot version ?
Leslie Chiang
Leslie ChiangOP5mo ago
We are on 10.1.0.cl-215
utsav.kapoor
utsav.kapoor5mo ago
Gotcha. Let me try with that version
Leslie Chiang
Leslie ChiangOP5mo ago
Hi @utsav.kapoor - any update here?
utsav.kapoor
utsav.kapoor5mo ago
@Leslie Chiang - Sorry, this got missed. Can you please pass Action.Pin to hiddenActions Array ? Documentation:https://developers.thoughtspot.com/docs/Interface_SearchViewConfig#_hiddenactions
Leslie Chiang
Leslie ChiangOP5mo ago
We are using visibleActions - if Pin is not in visible actions, then the embed does not handle HostEvent.Pin correctly. (see original message)
utsav.kapoor
utsav.kapoor5mo ago
Please add the following in your search embed:
additionalFlags: {
hasSeenPinsFlow: false
}
additionalFlags: {
hasSeenPinsFlow: false
}
Additionally please have the following classes added in Unstable rules of your CSS:
rules_UNSTABLE: {
'.pin-button-module__dualIntentPinButton': {
width: '0',
visibility: 'hidden',
},
'.first-pin-module__pinButton': {
width: '0',
visibility: 'hidden',
}
},
rules_UNSTABLE: {
'.pin-button-module__dualIntentPinButton': {
width: '0',
visibility: 'hidden',
},
'.first-pin-module__pinButton': {
width: '0',
visibility: 'hidden',
}
},
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
Leslie Chiang
Leslie ChiangOP4mo ago
Thank you! This works to hide the flash of the Pin button.

Did you find this page helpful?