UI Extension Components

I just recently started working with the CLI and getting a project spun up and uploaded to my sandbox. All works well but is there a way to display HTML content within a component? I have a need to show content that is stored in a different application that is saved as HTML. Is there perhaps an iframe component that can be used for this purpose? I saw the example project on Git that opens an iframe in a modal window but I was hoping to embed it within the card itself. Any help would be appreciated.

Hi @07590,

Thanks for reaching out to the Community!

I was looking into this topic, and what I found was this.

Please note that since UI Extensions are currently in BETA, the information outlined in the developer documents is subject to change. Perhaps this is what you are looking for to achieve your goal?

On the other hand, let’s consult with some of our experts to see if they have any suggestions for you.

Hi, @Phil_Vallender, @Jnix284, @Kevin-C, @zach_threadint - Do you have any advice for @07590?

Thanks!

Diana

Thanks Diana. Yes, all of those pages are what I used to setup my environment and get an extension working. All that is good. The issue is about the specific way, if any, to get HTML content into the card. I suspect that there is no way to do that without a special HubSpot React component being added to the resource files but if someone has a way to do this, it would really help me out. Either that or a way to embed an iFrame directly into the card as opposed to being used as an Action through a modal. Thanks again!

Hi @07590 :waving_hand:

As far as I’m aware, this isn’t possible. The only related option available at the moment, as you’ve mentioned, is popping out to a separate tab/window. I think that allowing for an iframe to be embedded directly within a component goes against what HubSpot is trying to achieve with this feature -- as such, I don’t expect any movement on this one.

I hope this proves helpful. Please let me know if you have any follow-up questions.

Thanks Zach. I appreciate the confirmation and your help.

Hello, Can you tell us more about what are you trying to achieve with the iFrame embed?

Ideally, there would be a new HubSpot recact compenent that would allow a way to display HTML content. We have data from a different application that uses this Tiny MCE editor and is stored as HTML. The iFrame embed would allow a way to display this (or other) content in a way that makes it look native to the application without a modal pop-up.