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:
-
session
Object -
ls
ObjectThe localization service
-
[site]
String optionalThe current site
-
cb
FunctionCallback function
getTopMenu
(
static
-
session
-
localizationService
-
[options]
-
cb
Retrieves the theme settings, navigation data structure, and account buttons.
Parameters:
-
session
ObjectThe current user's session
-
localizationService
LocalizationAn 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.
-
-
cb
FunctionCallback 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.