UX property dynamic chrome_toolbar & routing to external page from the toolbar icon in workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2025 09:47 AM
I have a requirement in UI Builder, where once the user clicks on the workspace chrome_toolbar icon on the left side, it should open an external page.
the icon will be routing to just a dummy page where there's no components and I have added a link to destination event handler(with the external page url) on page ready of the workspace dummy page mapped with the icon.
So what it basically does is, it opens the external page when I load the workspace for the first time and click on that icon. when i click on it 2nd time, it doesn't fire that page ready event(as the page is cached in the first time and doesn't reload again which would have triggered the page ready event) which results in no action related to the Link to Destination event handler.
I am looking for a way on how to accomplish this where the user doesn't need to take any action apart from just clicking on the toolbar icon to get redirected to the external page.
I was getting a thought of having a dynamic parameter in chrome_toolbar, which will cause the value to change everytime i click on that icon.
Please find the reference snippet below.
{
"id": "list",
"label": {"message": "List", "translatable": true},
"icon": "list-outline",
"viewportInfo": {},
"routeInfo": {
"route": "list",
"fields": {
"opened": "dynamic_value"
},
},
"group": "top",
"order": 200,
"badge":{},
"presence": {},
"availability": {}
},
Any ideas on this would be helpful.
#uibuilder, #workspaces, #Nextexperience