Class Column
java.lang.Object
io.mindspice.simplypages.core.HtmlTag
io.mindspice.simplypages.layout.Column
- All Implemented Interfaces:
Component
-
Field Summary
Fields inherited from class HtmlTag
attributes, children, id, innerText, innerTextSlot, selfClosing, tagName, trustedHtml -
Constructor Summary
ConstructorsConstructorDescriptionColumn()Creates a column element with its base layout class already present. -
Method Summary
Modifier and TypeMethodDescriptionauto()Sets auto-sized column behavior viacol-auto.static Columncreate()Creates a new column.fill()Sets fill behavior viacol-fill.withAttribute(String name, String value) Adds or replaces an attribute, preserving the basecoltoken when setting classes.Appends a child component.withChildren(Component... components) Appends each child component in argument order.Replaces class attribute withcol <className>.Sets id attribute.withWidth(int width) Sets fixed column width in the 12-column layout system.Methods inherited from class HtmlTag
addClass, addStyle, addTrustedStyle, getChildrenStream, getId, hxDelete, hxGet, hxInclude, hxPatch, hxPost, hxPushUrl, hxPut, hxScrollTargetTop, hxSwap, hxTarget, hxTrigger, render, withInnerText, withInnerText, withMaxWidth, withMinWidth, withUnsafeHtml, withWidth
-
Constructor Details
-
Column
public Column()Creates a column element with its base layout class already present.
-
-
Method Details
-
create
-
withWidth
Sets fixed column width in the 12-column layout system.- Parameters:
width- width token from 1 to 12- Returns:
- this column
- Throws:
IllegalArgumentException- when width is outside[1,12]
-
auto
-
fill
-
withId
-
withClass
-
withChild
-
withChildren
-
withAttribute
Adds or replaces an attribute, preserving the basecoltoken when setting classes.- Overrides:
withAttributein classHtmlTag- Parameters:
name- attribute namevalue- attribute value- Returns:
- this column
-