Class Table
java.lang.Object
io.mindspice.simplypages.core.HtmlTag
io.mindspice.simplypages.components.display.Table
- All Implemented Interfaces:
Component
Stateful table builder with explicit header/body sections.
Mutable and not thread-safe. Header/cell rows are appended to this instance and rendered in insertion order. For reuse, stop mutating shared instances and render stable structures with per-request context data.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRenderable table cell model.static classRenderable table row model. -
Field Summary
Fields inherited from class HtmlTag
attributes, children, id, innerText, innerTextSlot, selfClosing, tagName, trustedHtml -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAppends a prebuilt row.Appends a row with component cells.Appends a row with text cells.bordered()Appendstable-borderedclass.static Tablecreate()Creates a new table.Appendstable-hoverclass.striped()Appendstable-stripedclass.Appends class token(s).withHeaders(String... headerLabels) Appends header cells to the existing header row.Methods inherited from class HtmlTag
addClass, addStyle, addTrustedStyle, getChildrenStream, getId, hxDelete, hxGet, hxInclude, hxPatch, hxPost, hxPushUrl, hxPut, hxScrollTargetTop, hxSwap, hxTarget, hxTrigger, render, withAttribute, withChild, withId, withInnerText, withInnerText, withMaxWidth, withMinWidth, withUnsafeHtml, withWidth
-
Constructor Details
-
Table
public Table()Creates a table with preattachedthead > trandtbody.
-
-
Method Details
-
create
-
withHeaders
-
addRow
-
addRow
-
addRow
-
striped
-
bordered
-
hoverable
-
withClass
-