Used to work with the Navigator widget. Allows getting access to methods for building a link to the widget.
The method returns a link to a widget using the data of the portal page. The result is used in the Navigator widget.
const pages = await Namespace.portal.getPages(); if (pages?. length) { const widgetLink = UI.Navigator.fromPortalPage(pages[0]); }
The method returns a link to the widget using its namespace (workspace) and code. The result is used in the Navigator widget.
const widgetLink = UI.Navigator.fromWidget('portal', '_portal- navigation');
Your review is successfully sent!
Feedback sent successfully
Navigator object
Used to work with the Navigator widget. Allows getting access to methods for building a link to the widget.
Hierarchy
Methods
fromPortalPage
The method returns a link to a widget using the data of the portal page. The result is used in the Navigator widget.
const pages = await Namespace.portal.getPages(); if (pages?. length) { const widgetLink = UI.Navigator.fromPortalPage(pages[0]); }Parameters
protalPage: PortalPageInfo
Returns WidgetRefWithValues
fromWidget
The method returns a link to the widget using its namespace (workspace) and code. The result is used in the Navigator widget.
const widgetLink = UI.Navigator.fromWidget('portal', '_portal- navigation');Parameters
namespace: string
code: string
Returns WidgetRefWithValues