Class Gallery
java.lang.Object
io.mindspice.simplypages.core.HtmlTag
io.mindspice.simplypages.layout.Grid
io.mindspice.simplypages.components.media.Gallery
- All Implemented Interfaces:
Component
Grid-based image gallery component.
Mutable and not thread-safe through inherited grid/item mutation state. For reuse, stop mutating shared instances and render stable structures with per-request context data.
-
Field Summary
Fields inherited from class HtmlTag
attributes, children, id, innerText, innerTextSlot, selfClosing, tagName, trustedHtml -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds an image with an application-controlled or separately image-context-validated source.Adds an encoded source and escaped caption, without Image's source policy.static Gallerycreate()Alias forHtmlTag.addClass(String).withColumns(int columns) Sets column count and rewrites derived classes.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
-
Gallery
public Gallery()
-
-
Method Details
-
create
-
withColumns
Description copied from class:GridSets column count and rewrites derived classes.- Overrides:
withColumnsin classGrid- Parameters:
columns- number of columns used ingrid-cols-<n>- Returns:
- this grid
-
addImage
-
addImage
-
withClass
-