Class Divider
- All Implemented Interfaces:
Component
Rendering derives temporary attributes without changing stored configuration. Horizontal
dividers reserve the exact lowercase properties border-top, width,
display, line-height, position, text-align, margin
and the whole outer class token divider-with-text. With null text, the first four
properties are generated and the last three/token suppressed; with any non-null text,
including empty text, the reverse applies. Inactive reserved names are suppressed even when
caller-configured. Vertical dividers generate only border-left and display;
they do not suppress other properties or the outer text token.
Other declarations, case variants and classes remain caller-owned. Cleanup does not repair arbitrary CSS conflicts. Configuration is mutable and must finish before sharing; templates retain this renderer live. Child delegates and request contexts have separate sharing obligations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enum -
Field Summary
Fields inherited from class HtmlTag
attributes, children, id, innerText, innerTextSlot, selfClosing, tagName, trustedHtml -
Method Summary
Modifier and TypeMethodDescriptiondashed()dotted()Returns children to render, in order.static Dividermedium()render(RenderContext context) Renders opening tag, text payload, child output, and closing tag.solid()thick()thin()static Dividervertical()Alias forHtmlTag.addClass(String).withHeight(String height) Methods inherited from class HtmlTag
addClass, addStyle, addTrustedStyle, getId, hxDelete, hxGet, hxInclude, hxPatch, hxPost, hxPushUrl, hxPut, hxScrollTargetTop, hxSwap, hxTarget, hxTrigger, withAttribute, withChild, withId, withInnerText, withInnerText, withMaxWidth, withMinWidth, withUnsafeHtml, withWidth
-
Method Details
-
horizontal
-
vertical
-
thin
-
medium
-
thick
-
solid
-
dashed
-
dotted
-
withColor
-
withText
-
withHeight
-
withClass
-
getChildrenStream
Description copied from class:HtmlTagReturns children to render, in order.Extension point: subclasses may override to filter/reorder children.
- Overrides:
getChildrenStreamin classHtmlTag
-
render
Description copied from class:HtmlTagRenders opening tag, text payload, child output, and closing tag.Security contract: slot and plain text are escaped; trusted HTML payload is emitted verbatim.
-