Class NavBar
java.lang.Object
io.mindspice.simplypages.core.HtmlTag
io.mindspice.simplypages.components.navigation.NavBar
- All Implemented Interfaces:
Component
Navigation bar container with optional brand and item entries.
Mutable and not thread-safe. Child ordering and item state are assembled on this instance. Mutate within a request-scoped flow. For reuse, stop mutating and render as a stable structure with per-request slot/context values.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class HtmlTag
attributes, children, id, innerText, innerTextSlot, selfClosing, tagName, trustedHtml -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddItem(NavBar.NavItem navItem) Adds an encoded href; supply an application-controlled or separately validated destination.Adds an active-state entry with a trusted/context-validated href, without Link's scheme policy.addUtilityItem(Component component) addUtilityLink(String text, String href) Adds a utility link with an application-controlled or separately navigation-validated href.addUtilityLink(String text, String href, boolean active) Adds a utility link with an application-controlled or separately navigation-validated href.static NavBarcreate()vertical()Alias forHtmlTag.addClass(String).Methods inherited from class HtmlTag
addClass, addStyle, addTrustedStyle, getChildrenStream, getId, hxDelete, hxGet, hxInclude, hxPatch, hxPost, hxPushUrl, hxPut, hxScrollTargetTop, hxSwap, hxTarget, hxTrigger, render, withAttribute, withChild, withId, withInnerText, withInnerText, withMaxWidth, withMinWidth, withUnsafeHtml, withWidth
-
Constructor Details
-
NavBar
public NavBar()
-
-
Method Details
-
create
-
withBrand
-
addItem
-
addItem
-
addItem
-
addUtilityItem
-
addUtilityLink
-
addUtilityLink
-
vertical
-
horizontal
-
withClass
-