Class Spinner
java.lang.Object
io.mindspice.simplypages.core.HtmlTag
io.mindspice.simplypages.components.display.Spinner
- All Implemented Interfaces:
Component
Loading spinner component with size, color, and optional message.
Mutable and not thread-safe. Size/color/message settings mutate render output. 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 TypeMethodDescriptionstatic Spinnercreate()large()medium()render()Renders this component with an empty context.render(RenderContext context) Renders opening tag, text payload, child output, and closing tag.small()withMessage(String message) Methods inherited from class HtmlTag
addClass, addStyle, addTrustedStyle, getChildrenStream, getId, hxDelete, hxGet, hxInclude, hxPatch, hxPost, hxPushUrl, hxPut, hxScrollTargetTop, hxSwap, hxTarget, hxTrigger, withAttribute, withChild, withClass, withId, withInnerText, withInnerText, withMaxWidth, withMinWidth, withUnsafeHtml, withWidth
-
Constructor Details
-
Spinner
public Spinner()
-
-
Method Details
-
create
-
small
-
medium
-
large
-
withMessage
-
withColor
-
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.
-
render
-