Class SideNav
java.lang.Object
io.mindspice.simplypages.core.HtmlTag
io.mindspice.simplypages.components.navigation.SideNav
- All Implemented Interfaces:
Component
Vertical navigation container with section and item entries.
Mutable and not thread-safe. Sections/items are appended as child components in insertion order. 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(SideNav.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.addSection(String title) static SideNavcreate()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
-
SideNav
public SideNav()
-
-
Method Details
-
create
-
addItem
-
addItem
-
addSection
-
withClass
-