Class Icon
- All Implemented Interfaces:
ElementAttributeMethods<HTMLElement, Icon>, ElementClassListMethods<HTMLElement, Icon>, ElementConsumerMethods<HTMLElement, Icon>, ElementContainerMethods<HTMLElement, Icon>, ElementEventMethods<HTMLElement, Icon>, ElementIdMethods<HTMLElement, Icon>, ElementQueryMethods<HTMLElement>, HTMLElementAttributeMethods<HTMLElement, Icon>, HTMLElementDataMethods<HTMLElement, Icon>, HTMLElementStyleMethods<HTMLElement, Icon>, HTMLElementVisibilityMethods<HTMLElement, Icon>, IsElement<HTMLElement>, TypedBuilder<HTMLElement, Icon>, Component, ComponentProgress<HTMLElement, Icon>, Modifiers.Inline<HTMLElement, Icon>
public class Icon
extends BaseComponent<HTMLElement, Icon>
implements Modifiers.Inline<HTMLElement, Icon>, ComponentProgress<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.
icon(check());
icon(filter())
.size(IconSize.lg);
icon(exclamationTriangle())
.inline()
.status(warning);
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic IconFactory method to create a new instance of this component.static Iconicon(PredefinedIcon icon) Factory method to create a new instance of this component.Size of icon.progressIconSize(IconSize progressIconSize) Size of progress icon.Size of the icon component container and icon.that()Methods inherited from class BaseComponent
componentType, element, registerComponentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ComponentProgress
inProgress, progress, progress, progress, startProgress, stopProgress, toggleProgressMethods inherited from interface ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface ElementConsumerMethods
apply, runMethods inherited from interface ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface ElementEventMethods
on, on, onMethods inherited from interface ElementIdMethods
id, uniqueIdMethods inherited from interface ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface HTMLElementAttributeMethods
titleMethods inherited from interface HTMLElementDataMethods
data, dataMethods inherited from interface HTMLElementVisibilityMethods
hiddenMethods inherited from interface Modifiers.Inline
inline, inline
-
Method Details
-
icon
Factory method to create a new instance of this component. -
icon
-
size
-
iconSize
-
progressIconSize
Size of progress icon. Overrides the icon size set by thesize(IconSize)property. -
status
-
progress
- Specified by:
progressin interfaceComponentProgress<HTMLElement, Icon>
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement, Icon>
-