Skip to main content

Change app title dynamically inside code

  • February 22, 2023
  • 4 replies
  • 83 views

Forum|alt.badge.img+1

Hey Miro Developers and Miro Community

 

The app I’m developing (Miro SDK, React.js project) has multiple screens and I would like to change the app’s title, according to the selected screen.

Sadly, there seems to be no option for that in the miro sdk, since the title is always chosen from the app settings.

My first idea was to access and change the title via parent.document, since it worked out in the browser web tools, but this has some permission issues.

  • Uncaught DOMException: Permission denied to access property "document" on cross-origin object

Now I am wondering, did I miss something?

Is there a way from the REST API or the Miro SDK? Or is there some other workarounds to access the title outside the iframe?

 

Best Regards

Vladimir

Was it helpful?

4 replies

Max Harper
Forum|alt.badge.img+6
  • Miro Hero
  • 373 replies
  • February 22, 2023

@Vladimir B. Someone from Miro platform will give you a definite answer… but, as another platform user/dev, I can tell you, that I’ve never seen any support in V2 for changing the plugin title programmatically. 
 

 


Mettin
Mironeer
Forum|alt.badge.img+1
  • Mironeer
  • 86 replies
  • February 22, 2023

Hey @Vladimir B. 

Interesting case! Let me see if I get your use case correctly:

You want to be able to change the title of the panel, not the app name itself?

This is not possible at the moment, since the app is rendered in an iframe and (for security reasons) you cant alter anything outside that iframe.

Changing the App title programmatically would also change it in the app settings and thus in the marketplace, which will make it impossible to find your app again. Also the app title is a shared thing, not per user.

Hope you can make your app do what you want in another way, feel free to contact us if you need any help!

 

Cheers,
Mettin Parzinski


Forum|alt.badge.img+1
  • Author
  • Contributor
  • 13 replies
  • February 22, 2023

Thanks for the quick response to my question.

Too bad. Then I would have to come up with something else regarding the UI.


Mettin
Mironeer
Forum|alt.badge.img+1
  • Mironeer
  • 86 replies
  • February 23, 2023

Sorry I couldn't be of more assistance, do let me know when your app is published!


Reply