HtmlNavbar

Takes 10 parameters, Location, Mode, Title, TitleLink, Class, Fixed, bUseContainer, bNotResponsive, bInverted, HtmlPre, HtmlApn

 

Description:

Use EnsureNavFields to Ensure the list of Fields that the HtmlNavbar and HtmlNav command uses exist in the Query. Typically, you would have setup the Query to contain all of the information you wish to use to build a menu with ahead of time, then call EnsureNavFields, and then Set or Build your data into each of the Nav Fields. At the moment, the fields are:


Once you have a Query with the above Fields in it and all of the values set as you wish, use the HtmlNav or HtmlNavbar commands to place the Nav on the page.

Syntax:
HtmlNavbar Location, Mode, Title, TitleLink, Class, Fixed, bUseContainer, bNotResponsive, bInverted, HtmlPre, HtmlApn
HtmlNavbar Location, Mode, Title, TitleLink, Class, Fixed, bUseContainer, bNotResponsive, bInverted, HtmlPre, [""]
HtmlNavbar Location, Mode, Title, TitleLink, Class, Fixed, bUseContainer, bNotResponsive, bInverted, [""], [""]
HtmlNavbar Location, Mode, Title, TitleLink, Class, Fixed, bUseContainer, bNotResponsive, [""], [""], [""]
HtmlNavbar Location, Mode, Title, TitleLink, Class, Fixed, bUseContainer, [""], [""], [""], [""]
HtmlNavbar Location, Mode, Title, TitleLink, Class, Fixed, [""], [""], [""], [""], [""]
HtmlNavbar Location, Mode, Title, TitleLink, Class, [""], [""], [""], [""], [""], [""]
HtmlNavbar Location, Mode, Title, TitleLink, [""], [""], [""], [""], [""], [""], [""]
HtmlNavbar Location, ["Append"], Title, TitleLink, [""], [""], [""], [""], [""], [""], [""]
HtmlNavbar ["Runtime"], ["Append"], Title, TitleLink, [""], [""], [""], [""], [""], [""], [""]
HtmlNavbar ["Runtime"], ["Append"], Title, [""], [""], [""], [""], [""], [""], [""], [""]
HtmlNavbar ["Runtime"], ["Append"], [""], [""], [""], [""], [""], [""], [""], [""], [""]

Like the Location and Mode Parameters for other Html commands, if these Parameters are specified but left blank they will be populated with "Runtime" and "Append" respectfully.

For the HtmlNav command, if the Title is not blank, it will be wrapped in a panel, and then the Title will be panel-heading. If the Title is blank, there will be no wrapping divs, so you can roll your own wrapping. For HtmlNavbar, if the Title is blank the entire brand link will not be included.

Like the Class Parameters for other Html commands, any values within this parameter that start with a leading & symbol will have navbar- expanded in place of the & symbol and all resulting values (expanded or not) will be placed after "navbar ". 

The fixed parameter may be blank to not use a navbar-fixed class, or it may be set to "top" or "bottom". If using a fixed navbar, be sure to add padding to the HTML body tag, as per notes in the Bootstrap documentation for the Navbar. Other attributes of the tag may be provided here as well following a | symbol.

The bUseContainer option adds a container to the content within the navbar so that it is the same width as other content within any container on the rest of the page.

The bNotResponsive option prevents placing the items under a dropdown menu to the right of the Title on the left when on a small screen or in a small container.

The bInverted option changes the color scheme from light to dark.

The HtmlPre and HtmlApn Parameters allows you to place blocks of HTML before or after the main block and within the collapse. A typical use of this is to add a search box. Another possible use is to place a custom Template Insertion point there, and then in another command reference that Insertion point for the Location Parameter, such as HtmlSearchBox.

Note: This command requires the Template type to be set to bootstrap-v3 or bootstrap-v5