Class UnorderedList
java.lang.Object
io.mindspice.simplypages.core.HtmlTag
io.mindspice.simplypages.components.display.UnorderedList
- All Implemented Interfaces:
Component
Unordered list component with appended list items.
Mutable and not thread-safe. Items are accumulated and rendered in insertion order. 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 TypeMethodDescriptionAppends a component list item.Appends a text list item.static UnorderedListcreate()Creates a new unordered list.Returns inherited children plus appended list items.inline()Addslist-inlineclass.unstyled()Addslist-unstyledclass.Appends class token(s).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
-
UnorderedList
public UnorderedList()Creates an unordered list with base classlist.
-
-
Method Details
-
create
-
addItem
Appends a text list item.- Parameters:
text- item text- Returns:
- this list
-
addItem
Appends a component list item.- Parameters:
component- item component- Returns:
- this list
-
withClass
Appends class token(s). -
unstyled
-
inline
-
getChildrenStream
Returns inherited children plus appended list items.- Overrides:
getChildrenStreamin classHtmlTag- Returns:
- child stream
-