Class Breadcrumb
java.lang.Object
io.mindspice.simplypages.core.HtmlTag
io.mindspice.simplypages.components.navigation.Breadcrumb
- All Implemented Interfaces:
Component
Breadcrumb navigation with explicit active/non-active item entries.
Mutable and not thread-safe. Item list is accumulated and rendered 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.
-
Field Summary
Fields inherited from class HtmlTag
attributes, children, id, innerText, innerTextSlot, selfClosing, tagName, trustedHtml -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddActiveItem(String text) Adds an application-controlled or separately navigation-validated href.static Breadcrumbcreate()Returns children to render, in order.Alias forHtmlTag.addClass(String).Methods inherited from class HtmlTag
addClass, addStyle, addTrustedStyle, getId, hxDelete, hxGet, hxInclude, hxPatch, hxPost, hxPushUrl, hxPut, hxScrollTargetTop, hxSwap, hxTarget, hxTrigger, render, withAttribute, withChild, withId, withInnerText, withInnerText, withMaxWidth, withMinWidth, withUnsafeHtml, withWidth
-
Constructor Details
-
Breadcrumb
public Breadcrumb()
-
-
Method Details
-
create
-
addItem
Adds an application-controlled or separately navigation-validated href. Non-null hrefs are encoded without Link's scheme policy; null renders text rather than a link. -
addActiveItem
-
withClass
Description copied from class:HtmlTagAlias forHtmlTag.addClass(String). -
getChildrenStream
Description copied from class:HtmlTagReturns children to render, in order.Extension point: subclasses may override to filter/reorder children.
- Overrides:
getChildrenStreamin classHtmlTag
-