Hierarchy
- Navigator
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
-
Navigator object
Used to work with the Navigator widget. Allows getting access to methods for building a link to the widget.