Class NativePopover
java.lang.Object
org.patternfly.component.BaseComponent<HTMLDivElement, NativePopover>
org.patternfly.component.popover.NativePopover
- All Implemented Interfaces:
Attachable, ElementAttributeMethods<HTMLDivElement, NativePopover>, ElementClassListMethods<HTMLDivElement, NativePopover>, ElementConsumerMethods<HTMLDivElement, NativePopover>, ElementContainerMethods<HTMLDivElement, NativePopover>, ElementEventMethods<HTMLDivElement, NativePopover>, ElementIdMethods<HTMLDivElement, NativePopover>, ElementQueryMethods<HTMLDivElement>, HTMLElementAttributeMethods<HTMLDivElement, NativePopover>, HTMLElementDataMethods<HTMLDivElement, NativePopover>, HTMLElementStyleMethods<HTMLDivElement, NativePopover>, HTMLElementVisibilityMethods<HTMLDivElement, NativePopover>, IsElement<HTMLDivElement>, TypedBuilder<HTMLDivElement, NativePopover>, Closeable<HTMLDivElement, NativePopover>, Component, ComponentIcon<HTMLDivElement, NativePopover>, Modifiers.NoPadding<HTMLDivElement, NativePopover>
public class NativePopover
extends BaseComponent<HTMLDivElement, NativePopover>
implements Attachable, Closeable<HTMLDivElement, NativePopover>, ComponentIcon<HTMLDivElement, NativePopover>, Modifiers.NoPadding<HTMLDivElement, NativePopover>
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.
This implementation uses the Popover API and CSS anchor positioning instead of Popper.js. The popover uses the browser's top-layer rendering for correct stacking, eliminating z-index issues.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionadd(NativePopoverBody body) add(NativePopoverFooter footer) add(NativePopoverHeader header) addBody(NativePopoverBody body) addFooter(NativePopoverFooter footer) addHeader(NativePopoverHeader header) 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<NativePopover> closeHandler) voidvoiddetach(MutationRecord mutationRecord) distance(int distance) static NativePopoverstatic NativePopovernativePopover(HTMLElement trigger) static NativePopovernativePopover(Supplier<HTMLElement> trigger) static NativePopovernativePopover(By trigger) noClose()onClose(CloseHandler<NativePopover> closeHandler) voidshow()that()trigger(HTMLElement trigger) trigger(Supplier<HTMLElement> trigger) 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
-
DISTANCE
public static final int DISTANCE- See Also:
-
-
Method Details
-
nativePopover
-
nativePopover
-
nativePopover
-
nativePopover
-
attach
- Specified by:
attachin interfaceAttachable
-
detach
- Specified by:
detachin interfaceAttachable
-
addHeader
-
addHeader
-
add
-
addBody
-
addBody
-
add
-
autoWidth
-
closable
-
closable
-
distance
-
icon
- Specified by:
iconin interfaceComponentIcon<HTMLDivElement, NativePopover>
-
removeIcon
- Specified by:
removeIconin interfaceComponentIcon<HTMLDivElement, NativePopover>
-
noClose
-
placement
-
status
-
status
-
trigger
-
trigger
-
trigger
-
trigger
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLDivElement, NativePopover>
-
ariaLabel
Accessible label for the popover, required when header is not present. -
ariaCloseLabel
Accessible label for the close button. -
onClose
- Specified by:
onClosein interfaceCloseable<HTMLDivElement, NativePopover>
-
show
public void show() -
close
- Specified by:
closein interfaceCloseable<HTMLDivElement, NativePopover>
-