Greg L - Hello everyone, I'm working with a Liv...
# dev-help
g
Hello everyone, I'm working with a
LiveboardEmbed
with
hideLiveboardHeader: true
to have greater customizations over the UI. As a result of that we have to move around some of the now hidden actions, and I have questions specifically around Edit and Rename. For Edit: I am wiring up the button to fire off
liveboardEmbed.trigger(HostEvent.Edit)
but what is happening is that the liveboard edit bar will appear as desired, but be covered with a loading mask while the answer(s) are still loading, and then without anything else happening, the page acts as if I fired off an edit on the answer instead of the overall liveboard (screen recording in thread). I tried passing the optional
{ vizId: 'my-liveboard-id-guid-not-an-answer-guid' }
but that does not work and nothing happens on button click at all. For Rename: Is there an API available to handle the rename request? Or possibly a way to manually fire
EmbedEvent.Rename
given that functionality is hidden? The closest thing I saw was the 'Update Metadata Header' API but that requires elevated permissions that our end users will not have
a
message has been deleted
j
hey @Greg L , this should open the rename for viz tsEmbed.trigger('renameModalTitleDescription', { vizId: '2ef289d7-063f-4b2d-8135-3c45292615e7' }) if you dont pass vizId it should open the modal for liveboard the edit one seems wierd it should not be like that . calling edit without vizid should open liveboard's edit and if passed it should open the edit of the viz
also what version is your cluster at ?
btw i got the event from Action.Rename
g
@Justin Mathew we are on version 26.2.0 cl-114. Passing
'renameModalTitleDescription'
to the
.trigger()
does not compile 🥲 https://cdn.discordapp.com/attachments/1475866616645419204/1476611646666575903/image.png?ex=69a1c142&is=69a06fc2&hm=a60a6624b53773c3d6bca79898926fa7b2357194116dcf55f7d4711a8c7bf5e3&
@Justin Mathew For what it's worth, I'm on
visual-embed-sdk
1.42.0. Has
renameModalTitleDescription
been added as a
HostEvent
recognizeable by the
trigger
function in a later version?
r
Hi @Greg L For Edit: It looks like a timing issue. Can you add a timeout before you trigger the event so that only the Liveboard edit action is triggered and it doesn’t cause any unnecessary event triggers. For Rename: Could you please create a support ticket for this? The team will look into adding support for it.