QuorumNavigationBar
Package: Libraries.Web.Quorum · Inherits from: Libraries.Language.Object
QuorumNavigationBar is the Quorum website's navigation bar, as NavigationBar builds it for the main site, with its looks from the site's styles instead of Tailwind's classes. Its elements keep NavigationBar's identifiers, since the site's scripts find them by those (to show "Logout" and the Projects link once a reader signs in). On phones and tablets, the bar is the logo and a menu button; the button opens the menu below it. From LARGE_SCREEN_WIDTH, the menu is a row beside the logo, and Download is a blue button. (The old site switched at SMALL_SCREEN_WIDTH, but the row needs about 1000 pixels, so it ran off the page on tablets.) The search button swaps the menu for a search field.
Example Code
QuorumNavigationBar navigation
page:PlaceAtEnd(navigation:Build(page))
Actions
Build(Libraries.Web.Page.WebPage page)
Builds the bar for one page, with its looks set on that page.
Parameters
pageLibraries.Web.Page.WebPage: The page the bar goes on.
Returns
Libraries.Web.Page.NavigationDivision: The bar, ready to place at the top of the page.
SetIconFolder(text folder)
Sets the folder the icons are read from, such as "html/media/userInterface/SVG/" (QuorumSite passes its own, from QuorumSite:SetIconFolder).
Parameters
foldertext: The folder, ending with a slash.
SetIcons(Libraries.Containers.HashTable<text:text> icons)
Sets icons as their SVG, by their files' names (such as "hamburger.svg"), used instead of reading the files (QuorumSite passes its own, from QuorumSite:SetIcon).
Parameters
iconsLibraries.Containers.HashTable<text:text>: The icons' SVG, by file name.