public class Label extends BaseDominoElement<elemental2.dom.HTMLElement,Label> implements HasContent<Label>, HasBackground<Label>
For example:
Label.createDefault("DEFAULT");
Label.createPrimary("PRIMARY");
Label.createSuccess("SUCCESS")
BaseDominoElement,
HasBackground,
HasContentBaseDominoElement.ElementHandler<T>, BaseDominoElement.ResizeHandler<T>, BaseDominoElement.StyleEditor<E extends elemental2.dom.HTMLElement,T extends org.jboss.elemento.IsElement<E>>, BaseDominoElement.WavesStylerelement| Modifier and Type | Method and Description |
|---|---|
static Label |
create(String content)
Creates with content and no type
|
static Label |
create(String content,
StyleType type)
Creates with content and a type
|
static Label |
createDanger(String content)
Creates with content and
StyleType.DANGER type |
static Label |
createDefault(String content)
Creates with content and
StyleType.DEFAULT type |
static Label |
createInfo(String content)
Creates with content and
StyleType.INFO type |
static Label |
createPrimary(String content)
Creates with content and
StyleType.PRIMARY type |
static Label |
createSuccess(String content)
Creates with content and
StyleType.SUCCESS type |
static Label |
createWarning(String content)
Creates with content and
StyleType.WARNING type |
elemental2.dom.HTMLElement |
element() |
Label |
setBackground(Color background) |
Label |
setContent(String content) |
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 Label create(String content)
content - the text contentpublic static Label create(String content, StyleType type)
content - the text contenttype - the StyleTypepublic static Label createDefault(String content)
StyleType.DEFAULT typecontent - the text contentpublic static Label createPrimary(String content)
StyleType.PRIMARY typecontent - the text contentpublic static Label createSuccess(String content)
StyleType.SUCCESS typecontent - the text contentpublic static Label createInfo(String content)
StyleType.INFO typecontent - the text contentpublic static Label createWarning(String content)
StyleType.WARNING typecontent - the text contentpublic static Label createDanger(String content)
StyleType.DANGER typecontent - the text contentpublic elemental2.dom.HTMLElement element()
element in interface org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>element in class BaseDominoElement<elemental2.dom.HTMLElement,Label>public Label setContent(String content)
setContent in interface HasContent<Label>content - String text contentpublic Label setBackground(Color background)
setBackground in interface HasBackground<Label>background - ColorCopyright © 2019–2022 Dominokit. All rights reserved.