public class GridLayout extends BaseDominoElement<elemental2.dom.HTMLDivElement,GridLayout>
More information can be found in MDN official documentation
Customize the component can be done by overwriting classes provided by GridStyles
For example:
GridLayout gridLayout = GridLayout.create()
.style()
.setHeight("500px").get();
// changing a section size
gridLayout.setHeaderSpan(SectionSpan._2);
gridLayout.setLeftSpan(SectionSpan._3);
gridLayout.setRightSpan(SectionSpan._4);
gridLayout.setFooterSpan(SectionSpan._2);
// hiding sections
gridLayout.hideHeader();
gridLayout.hideLeft();
gridLayout.hideRight();
gridLayout.hideFooter();
// Adding elements
gridLayout.getContentElement().appendChild(otherElement);
gridLayout.getHeaderElement().appendChild(otherElement);
gridLayout.getLeftElement().appendChild(otherElement);
gridLayout.getRightElement().appendChild(otherElement);
gridLayout.getFooterElement().appendChild(otherElement);
BaseDominoElementBaseDominoElement.ElementHandler<T>, BaseDominoElement.ResizeHandler<T>, BaseDominoElement.StyleEditor<E extends elemental2.dom.HTMLElement,T extends org.jboss.elemento.IsElement<E>>, BaseDominoElement.WavesStyler| Constructor and Description |
|---|
GridLayout() |
| Modifier and Type | Method and Description |
|---|---|
static GridLayout |
create()
Creates a new layout
|
elemental2.dom.HTMLDivElement |
element() |
DominoElement<elemental2.dom.HTMLDivElement> |
getContentElement() |
DominoElement<elemental2.dom.HTMLDivElement> |
getFooterElement() |
DominoElement<elemental2.dom.HTMLDivElement> |
getHeaderElement() |
DominoElement<elemental2.dom.HTMLDivElement> |
getLeftElement() |
DominoElement<elemental2.dom.HTMLDivElement> |
getRightElement() |
GridLayout |
hideFooter()
Hides the footer section
|
GridLayout |
hideHeader()
Hides the header section
|
GridLayout |
hideLeft()
Hides the left section
|
GridLayout |
hideRight()
Hides the right section
|
GridLayout |
setFooterSpan(SectionSpan sectionSpan)
Change the size of the footer section, changing the footer section can be to cover up to 6 rows
|
GridLayout |
setGap(String gap)
Sets the spaces between the sections
|
GridLayout |
setHeaderSpan(SectionSpan sectionSpan)
Change the size of the header section, changing the header can be to cover up to 6 rows
|
GridLayout |
setLeftSpan(SectionSpan sectionSpan,
boolean spanUp,
boolean spanDown)
Change the size of the left section, changing the left section can be to cover up to 6 columns
|
GridLayout |
setRightSpan(SectionSpan sectionSpan,
boolean spanUp,
boolean spanDown)
Change the size of the right section, changing the right section can be to cover up to 6
columns
|
add, add, addClickListener, addCss, addCss, addEventListener, addEventListener, addEventsListener, addHideListener, addShowListener, alignCenter, alignRight, appendChild, appendChild, apply, attr, blur, childNodes, clearElement, contains, contains, contains, containsCss, css, css, cssClassByIndex, cssClassesCount, cssText, disable, elevate, elevate, enable, firstChild, getAttachObserver, getAttribute, getBoundingClientRect, getChildElementCount, getClickableElement, getCollapsible, getCollapsibleElement, getDetachObserver, getDominoId, getElementsCount, getElevation, getFirstChild, getId, getTextContent, getTooltip, getWavesElement, hasAttribute, hasChildNodes, hasDirectChild, hide, hideOn, id, init, insertAfter, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertBefore, insertFirst, insertFirst, insertFirst, isAttached, isCollapsed, isDisabled, isEmptyElement, isEqualNode, isForceHidden, isHidden, isReadOnly, item, lastChild, length, onAttached, onDetached, onResize, pullLeft, pullRight, querySelector, querySelectorAll, remove, removeAttachObserver, removeAttribute, removeChild, removeChild, removeCss, removeCss, removeCssProperty, removeDetachObserver, removeEventListener, removeEventListener, removeHideListener, removeHideOn, removeShowListener, removeShowOn, removeTooltip, removeWaves, replaceCss, setAlignItems, setAttribute, setAttribute, setAttribute, setBackgroundColor, setBackgroundColor, setBorder, setBorderColor, setBottom, setBottom, setBoxShadow, setCollapseStrategy, setColor, setColor, setContent, setContent, setCssProperty, setCssProperty, setCursor, setCursor, setDisabled, setDisplay, setDisplay, setDropMenu, setFlex, setFloat, setFloat, setFontSize, setFontSize, setForceHidden, setHeight, setHeight, setId, setInnerHtml, setLeft, setLeft, setLineHeight, setLineHeight, setMargin, setMargin, setMarginBottom, setMarginBottom, setMarginLeft, setMarginLeft, setMarginRight, setMarginRight, setMarginTop, setMarginTop, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setOpacity, setOpacity, setOverFlow, setOverFlow, setOverFlowY, setPadding, setPadding, setPaddingBottom, setPaddingBottom, setPaddingLeft, setPaddingLeft, setPaddingRight, setPaddingRight, setPaddingTop, setPaddingTop, setPointerEvents, setPosition, setPosition, setReadOnly, setRight, setRight, setTabIndex, setTextAlign, setTextAlign, setTextContent, setTooltip, setTooltip, setTooltip, setTooltip, setTop, setTop, setTransitionDuration, setWidth, setWidth, setZIndex, show, showOn, style, style, styler, textContent, toggleDisplay, toggleDisplay, withWaves, withWavesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisExpandedadd, add, remove, remove, removeProperty, replace, setProperty, setPropertypublic static GridLayout create()
public GridLayout setGap(String gap)
For example:
GridLayout.create()
.setGap("1px 2px")
gap - the string value of the space in CSS gap formatpublic GridLayout setHeaderSpan(SectionSpan sectionSpan)
sectionSpan - the number of rows to coverpublic GridLayout hideHeader()
public GridLayout setRightSpan(SectionSpan sectionSpan, boolean spanUp, boolean spanDown)
sectionSpan - the number of columns to coverspanUp - true to make the right section sized to the top of the layout even if the header
exists, false to position it based on the headerspanDown - true to make the right section sized to the bottom of the layout even if the
footer exists, false to position it based on the footerpublic GridLayout hideRight()
public GridLayout setLeftSpan(SectionSpan sectionSpan, boolean spanUp, boolean spanDown)
sectionSpan - the number of columns to coverspanUp - true to make the left section sized to the top of the layout even if the header
exists, false to position it based on the headerspanDown - true to make the left section sized to the bottom of the layout even if the
footer exists, false to position it based on the footerpublic GridLayout hideLeft()
public GridLayout setFooterSpan(SectionSpan sectionSpan)
sectionSpan - the number of rows to coverpublic GridLayout hideFooter()
public elemental2.dom.HTMLDivElement element()
element in interface org.jboss.elemento.IsElement<elemental2.dom.HTMLDivElement>element in class BaseDominoElement<elemental2.dom.HTMLDivElement,GridLayout>public DominoElement<elemental2.dom.HTMLDivElement> getContentElement()
public DominoElement<elemental2.dom.HTMLDivElement> getHeaderElement()
public DominoElement<elemental2.dom.HTMLDivElement> getFooterElement()
public DominoElement<elemental2.dom.HTMLDivElement> getLeftElement()
public DominoElement<elemental2.dom.HTMLDivElement> getRightElement()
Copyright © 2019–2022 Dominokit. All rights reserved.