Class Popover
java.lang.Object
org.patternfly.component.BaseComponent<HTMLDivElement, Popover>
org.patternfly.component.popover.Popover
- All Implemented Interfaces:
Attachable, ElementAttributeMethods<HTMLDivElement, Popover>, ElementClassListMethods<HTMLDivElement, Popover>, ElementConsumerMethods<HTMLDivElement, Popover>, ElementContainerMethods<HTMLDivElement, Popover>, ElementEventMethods<HTMLDivElement, Popover>, ElementIdMethods<HTMLDivElement, Popover>, ElementQueryMethods<HTMLDivElement>, HTMLElementAttributeMethods<HTMLDivElement, Popover>, HTMLElementDataMethods<HTMLDivElement, Popover>, HTMLElementStyleMethods<HTMLDivElement, Popover>, HTMLElementVisibilityMethods<HTMLDivElement, Popover>, IsElement<HTMLDivElement>, TypedBuilder<HTMLDivElement, Popover>, Closeable<HTMLDivElement, Popover>, Component, ComponentIcon<HTMLDivElement, Popover>, Modifiers.NoPadding<HTMLDivElement, Popover>
public class Popover
extends BaseComponent<HTMLDivElement, Popover>
implements Closeable<HTMLDivElement, Popover>, Modifiers.NoPadding<HTMLDivElement, Popover>, ComponentIcon<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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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) ariaCloseLabel(String label) Accessible label for the close button.Accessible label for the popover, required when header is not present.voidattach(MutationRecord mutationRecord) closable()closable(CloseHandler<Popover> closeHandler) voidvoiddetach(MutationRecord mutationRecord) distance(int distance) flip(boolean flip) noClose()onClose(CloseHandler<Popover> closeHandler) static Popoverpopover()static Popoverpopover(HTMLElement trigger) static Popoverpopover(Supplier<HTMLElement> trigger) static Popovervoidshow()voidthat()trigger(HTMLElement trigger) trigger(Supplier<HTMLElement> trigger) triggerActions(TriggerAction... triggerActions) zIndex(int zIndex) Methods inherited from class BaseComponent
componentType, element, registerComponentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ComponentIcon
iconMethods 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.NoPadding
noPadding, noPadding
-
Field Details
-
ANIMATION_DURATION
public static final int ANIMATION_DURATION- 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
- Specified by:
attachin interfaceAttachable
-
detach
- Specified by:
detachin interfaceAttachable
-
addHeader
-
addHeader
-
add
-
addBody
-
addBody
-
add
-
appendToBody
-
appendTo
-
animationDuration
-
autoWidth
-
closable
-
closable
-
distance
-
flip
-
icon
- Specified by:
iconin interfaceComponentIcon<HTMLDivElement, Popover>
-
removeIcon
- Specified by:
removeIconin interfaceComponentIcon<HTMLDivElement, Popover>
-
noClose
-
placement
-
status
-
status
-
trigger
-
trigger
-
trigger
-
trigger
-
triggerActions
-
zIndex
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLDivElement, Popover>
-
ariaLabel
-
ariaCloseLabel
-
onClose
- Specified by:
onClosein interfaceCloseable<HTMLDivElement, Popover>
-
show
public void show() -
show
-
close
- Specified by:
closein interfaceCloseable<HTMLDivElement, Popover>
-