Class Container
java.lang.Object
io.mindspice.simplypages.core.HtmlTag
io.mindspice.simplypages.layout.Container
- All Implemented Interfaces:
Component
Width-constrained content container.
Mutable and not thread-safe. Use within a single request/render lifecycle. For reuse, stop mutating shared instances and render stable structures with per-request context data.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPredefined container width variants. -
Field Summary
Fields inherited from class HtmlTag
attributes, children, id, innerText, innerTextSlot, selfClosing, tagName, trustedHtml -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class HtmlTag
addClass, addStyle, addTrustedStyle, getChildrenStream, getId, hxDelete, hxGet, hxInclude, hxPatch, hxPost, hxPushUrl, hxPut, hxScrollTargetTop, hxSwap, hxTarget, hxTrigger, render, withAttribute, withInnerText, withInnerText, withMaxWidth, withMinWidth, withUnsafeHtml, withWidth
-
Constructor Details
-
Container
public Container()Creates a fixed-width container with classcontainer.
-
-
Method Details
-
create
-
fluid
-
withSize
Replaces class attribute withcontainer <sizeClass>.- Parameters:
size- container size enum- Returns:
- this container
-
withId
-
withClass
-
withChild
-