Class Icon
java.lang.Object
io.mindspice.simplypages.core.HtmlTag
io.mindspice.simplypages.components.Icon
- All Implemented Interfaces:
Component
Icon wrapper for multiple icon-library class conventions.
Mutable and not thread-safe. Library/name/size settings rewrite class attributes in place. 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic IconCreates a Bootstrap Icon.static IconCreates a custom icon with custom CSS class.Sets extra large size.static IconfontAwesome(String iconName) Creates a Font Awesome solid icon.static IconfontAwesomeBrand(String iconName) Creates a Font Awesome brand icon.static IconfontAwesomeRegular(String iconName) Creates a Font Awesome regular icon.large()Sets large size.static IconCreates a Material Icon.small()Sets small size.withAriaLabel(String label) Adds an aria-label for accessibility.Methods inherited from class HtmlTag
addClass, addStyle, addTrustedStyle, getChildrenStream, getId, hxDelete, hxGet, hxInclude, hxPatch, hxPost, hxPushUrl, hxPut, hxScrollTargetTop, hxSwap, hxTarget, hxTrigger, render, withAttribute, withChild, withClass, withId, withInnerText, withInnerText, withMaxWidth, withMinWidth, withUnsafeHtml, withWidth
-
Method Details
-
fontAwesome
-
fontAwesomeRegular
-
fontAwesomeBrand
-
material
-
bootstrap
-
custom
-
small
Sets small size. -
large
Sets large size. -
extraLarge
Sets extra large size. -
withAriaLabel
-