Class Icon

java.lang.Object
org.patternfly.component.BaseComponent<elemental2.dom.HTMLElement,Icon>
org.patternfly.component.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, WithProgress<elemental2.dom.HTMLElement,Icon>, Modifiers.Inline<elemental2.dom.HTMLElement,Icon>

public class Icon extends BaseComponent<elemental2.dom.HTMLElement,Icon> implements Modifiers.Inline<elemental2.dom.HTMLElement,Icon>, WithProgress<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.

See Also:
  • Method Details

    • icon

      public static Icon icon(PredefinedIcon icon)
      Factory method to create a new instance of this component.
    • icon

      public static Icon icon(elemental2.dom.Element icon)
      Factory method to create a new instance of this component.
    • size

      public Icon size(Size size)
      Modifies the size of this component.
    • iconSize

      public Icon iconSize(Size iconSize)
    • status

      public Icon status(Status status)
    • progress

      public Icon progress(boolean inProgress, String label, Consumer<Spinner> spinnerConsumer)
      Specified by:
      progress in interface WithProgress<elemental2.dom.HTMLElement,Icon>
    • that

      public Icon that()
      Specified by:
      that in interface TypedBuilder<elemental2.dom.HTMLElement,Icon>