Class Card
java.lang.Object
io.mindspice.simplypages.core.HtmlTag
io.mindspice.simplypages.components.display.Card
- All Implemented Interfaces:
Component
Card container with optional header/body/footer/image slots.
Mutable and not thread-safe. Slot flags and nested slot containers are updated in place. 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 TypeMethodDescriptionstatic Cardcreate()Returns children to render, in order.Alias forHtmlTag.addClass(String).withFooter(Component footerComponent) withFooter(String footerText) withHeader(Component headerComponent) withHeader(String headerText) Sets an encoded image source without Image's source policy.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
-
Card
public Card()
-
-
Method Details
-
create
-
withHeader
-
withHeader
-
withBody
-
withBody
-
withImage
-
withClass
-
getChildrenStream
Description copied from class:HtmlTagReturns children to render, in order.Extension point: subclasses may override to filter/reorder children.
- Overrides:
getChildrenStreamin classHtmlTag
-