TopMenuService Class
Service for top menu navigation. NOTE: This is not for administrative pages.
Item Index
Methods
- getAccountButtons static
- getBootstrapNav static
- getNavItems
- getTopMenu static
Methods
getAccountButtons
(
static
-
session -
ls -
[site] -
cb
Retrieves the information needed to draw account buttons
Parameters:
-
sessionObject -
lsObjectThe localization service
-
[site]String optionalThe current site
-
cbFunctionCallback function
getTopMenu
(
static
-
session -
localizationService -
[options] -
cb
Retrieves the theme settings, navigation data structure, and account buttons.
Parameters:
-
sessionObjectThe current user's session
-
localizationServiceLocalizationAn instance of Localization to translate default items
-
[options]Object optionalAn optional argument to provide more flexibility to the menu construction. (pass in site: siteUId to select the proper tenant)
-
[currUrl]String optionalThe current request URL.
-
-
cbFunctionCallback function that takes three parameters. The first are the theme's settings, the second is the navigation structure, and the third is the account button structure.
