Package org.patternfly.component.popover
Class Popover
java.lang.Object
org.patternfly.component.BaseComponent<elemental2.dom.HTMLDivElement,Popover>
org.patternfly.component.popover.Popover
- All Implemented Interfaces:
Attachable,Container<elemental2.dom.HTMLDivElement,,Popover> Finder<elemental2.dom.HTMLDivElement>,HasElement<elemental2.dom.HTMLDivElement,,Popover> HasHTMLElement<elemental2.dom.HTMLDivElement,,Popover> IsElement<elemental2.dom.HTMLDivElement>,TypedBuilder<elemental2.dom.HTMLDivElement,,Popover> Closeable<elemental2.dom.HTMLDivElement,,Popover> Component,WithIcon<elemental2.dom.HTMLDivElement,,Popover> Modifiers.NoPadding<elemental2.dom.HTMLDivElement,Popover>
public class Popover
extends BaseComponent<elemental2.dom.HTMLDivElement,Popover>
implements Closeable<elemental2.dom.HTMLDivElement,Popover>, Modifiers.NoPadding<elemental2.dom.HTMLDivElement,Popover>, WithIcon<elemental2.dom.HTMLDivElement,Popover>, Attachable
A popover is in-app messaging that provides more information on specific product areas. Popovers display content in a new
window that overlays the current page. Unlike modals, popovers don't block the current page.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionadd(PopoverBody body) add(PopoverFooter footer) add(PopoverHeader header) addBody(PopoverBody body) addFooter(PopoverFooter footer) addHeader(PopoverHeader header) animationDuration(int animationDuration) appendTo(elemental2.dom.Node node) ariaCloseLabel(String label) Accessible label for the close button.Accessible label for the popover, required when header is not present.voidattach(elemental2.dom.MutationRecord mutationRecord) closable()closable(CloseHandler<Popover> closeHandler) voidclose(elemental2.dom.Event event, boolean fireEvent) voiddetach(elemental2.dom.MutationRecord mutationRecord) distance(int distance) flip(boolean flip) icon(elemental2.dom.Element icon) noClose()onClose(CloseHandler<Popover> closeHandler) static Popoverpopover()static Popoverpopover(elemental2.dom.HTMLElement trigger) static Popoverstatic Popovervoidshow()voidshow(elemental2.dom.Event event) that()trigger(elemental2.dom.HTMLElement trigger) triggerActions(TriggerAction... triggerActions) zIndex(int zIndex) 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, addAllMethods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, classList, classList, css, id, innerHtml, on, on, on, run, textContent, textNode, toggle, toggle, toggle, uniqueIdMethods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, style, style, style, style, style, titleMethods inherited from interface org.patternfly.style.Modifiers.NoPadding
noPadding, noPadding
-
Field Details
-
ANIMATION_DURATION
public static final int ANIMATION_DURATION- See Also:
-
ENTRY_DELAY
public static final int ENTRY_DELAY- See Also:
-
EXIT_DELAY
public static final int EXIT_DELAY- See Also:
-
DISTANCE
public static final int DISTANCE- See Also:
-
Z_INDEX
public static final int Z_INDEX- See Also:
-
-
Method Details
-
popover
-
popover
-
popover
-
popover
-
attach
public void attach(elemental2.dom.MutationRecord mutationRecord) - Specified by:
attachin interfaceAttachable
-
detach
public void detach(elemental2.dom.MutationRecord mutationRecord) - Specified by:
detachin interfaceAttachable
-
addHeader
-
addHeader
-
add
-
addBody
-
addBody
-
add
-
appendToBody
-
appendTo
-
animationDuration
-
autoWidth
-
closable
-
closable
-
distance
-
flip
-
icon
-
removeIcon
- Specified by:
removeIconin interfaceWithIcon<elemental2.dom.HTMLDivElement,Popover>
-
noClose
-
placement
-
severity
-
severity
-
trigger
-
trigger
-
trigger
-
trigger
-
triggerActions
-
zIndex
-
that
- Specified by:
thatin interfaceTypedBuilder<elemental2.dom.HTMLDivElement,Popover>
-
ariaLabel
Accessible label for the popover, required when header is not present. -
ariaCloseLabel
Accessible label for the close button. -
onClose
-
show
public void show() -
show
public void show(elemental2.dom.Event event) -
close
public void close(elemental2.dom.Event event, boolean fireEvent)
-