Package org.patternfly.components.icon
Class Icon
- java.lang.Object
-
- org.patternfly.components.BaseComponent<elemental2.dom.HTMLElement,Icon>
-
- org.patternfly.components.icon.Icon
-
- All Implemented Interfaces:
Container<elemental2.dom.HTMLElement,Icon>,Finder<elemental2.dom.HTMLElement>,HasElement<elemental2.dom.HTMLElement,Icon>,HasHTMLElement<elemental2.dom.HTMLElement,Icon>,IsElement<elemental2.dom.HTMLElement>,TypedBuilder<elemental2.dom.HTMLElement,Icon>,Component
public class Icon extends BaseComponent<elemental2.dom.HTMLElement,Icon>
An icon component is a container that allows for icons of varying dimensions, as well as spinners, to seamlessly replace each other without shifting surrounding content.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Iconicon(String iconClass)Factory method to create a new instance of this component.IconiconSize(Size size)Modifies the size of the icon.Iconinline()IconinProgress()Swaps the icon to a progress icon.IconinProgress(boolean onOff)Turns the progress icon on/off.Iconsize(Size size)Modifies the size of this component.Iconstatus(Status status)Modifies the status of this component.Iconthat()-
Methods inherited from class org.patternfly.components.BaseComponent
componentType, element
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.elemento.Container
add, add, addAll, addAll, addAll, addAll, addAll
-
Methods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, css, id, id, innerHtml, on, textContent, toggle, toggle, toggle
-
Methods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, title
-
-
-
-
Method Detail
-
icon
public static Icon icon(String iconClass)
Factory method to create a new instance of this component. Use the constants defined inIconstogether withIcons.fas(String)to specify the icon class.
-
that
public Icon that()
-
inline
public Icon inline()
-
inProgress
public Icon inProgress()
Swaps the icon to a progress icon.
-
inProgress
public Icon inProgress(boolean onOff)
Turns the progress icon on/off.
-
-