Updating htmlFileURL in Palette at Runtime

Updating htmlFileURL in Palette at Runtime

pts_user1
Participant Participant
95 Views
1 Reply
Message 1 of 2

Updating htmlFileURL in Palette at Runtime

pts_user1
Participant
Participant

Hi,

I'm currently adding a palette using palettes->add() and providing the htmlFileURL during initialization.
Now, I would like to update the htmlFileURL dynamically at runtime within the same palette.

At the moment, I'm deleting the existing palette and creating a new one with the updated URL.

However, this approach is not user-friendly, as it causes the palette to visibly close and reopen.

Is there a better way to update the htmlFileURL without recreating the palette?

0 Likes
96 Views
1 Reply
Reply (1)
Message 2 of 2

Jorge_Jaramillo
Collaborator
Collaborator

Hi,

You have the Palette.htmlFileUrl property which you can set to the new URL you want:

 

Jorge_Jaramillo_0-1754057668579.png

 

Regards,

Jorge Jaramillo

 

0 Likes