Package org.patternfly.component.alert
Class AlertGroup
java.lang.Object
org.patternfly.component.BaseComponent<HTMLUListElement,AlertGroup>
org.patternfly.component.alert.AlertGroup
- All Implemented Interfaces:
Container<HTMLUListElement,,AlertGroup> Finder<HTMLUListElement>,HasElement<HTMLUListElement,,AlertGroup> HasHTMLElement<HTMLUListElement,,AlertGroup> IsElement<HTMLUListElement>,TypedBuilder<HTMLUListElement,,AlertGroup> Component
An alert group stacks and positions 2 or more alerts in a live region, either in a layer over the main content of a page or
inline with the page content. Alert groups should always rank alerts by age, stacking new alerts on top of old ones as they
surface.
-
Method Summary
Modifier and TypeMethodDescription<T> AlertGroupstatic AlertGroupalertGroup(AlertGroupType type) Creates a new alert group of the given type without timeout.static AlertGroupalertGroup(AlertGroupType type, int timeout) Creates a new alert group of the given type and timeout.that()Methods inherited from class org.patternfly.component.BaseComponent
componentType, elementMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAll
-
Method Details
-
alertGroup
Creates a new alert group of the given type without timeout.If the type is
AlertGroupType.toastthe alert group is added to the body or if it already has been added the existing alert group is returned (singleton pattern). -
alertGroup
Creates a new alert group of the given type and timeout.If the type is
AlertGroupType.toastthe alert group is added to the body or if it already has been added the existing alert group is returned (singleton pattern). -
addAlerts
-
addAlert
-
add
-
that
-