Package org.patternfly.component.popover
Class Popover
java.lang.Object
org.patternfly.component.BaseComponent<HTMLDivElement,Popover>
org.patternfly.component.popover.Popover
- All Implemented Interfaces:
Attachable
,Container<HTMLDivElement,
,Popover> Finder<HTMLDivElement>
,HasElement<HTMLDivElement,
,Popover> HasHTMLElement<HTMLDivElement,
,Popover> IsElement<HTMLDivElement>
,TypedBuilder<HTMLDivElement,
,Popover> Closeable<HTMLDivElement,
,Popover> Component
,WithIcon<HTMLDivElement,
,Popover> Modifiers.NoPadding<HTMLDivElement,
Popover>
public class Popover
extends BaseComponent<HTMLDivElement,Popover>
implements Closeable<HTMLDivElement,Popover>, Modifiers.NoPadding<HTMLDivElement,Popover>, WithIcon<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
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static 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.void
attach
(MutationRecord mutationRecord) closable()
closable
(CloseHandler<Popover> closeHandler) void
void
detach
(MutationRecord mutationRecord) distance
(int distance) flip
(boolean flip) noClose()
onClose
(CloseHandler<Popover> closeHandler) static Popover
popover()
static Popover
popover
(HTMLElement trigger) static Popover
popover
(Supplier<HTMLElement> trigger) static Popover
void
show()
void
that()
trigger
(HTMLElement trigger) trigger
(Supplier<HTMLElement> trigger) triggerActions
(TriggerAction... triggerActions) zIndex
(int zIndex) Methods inherited from class org.patternfly.component.BaseComponent
componentType, element
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAll
Methods 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, uniqueId
Methods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, style, style, style, style, style, title
Methods 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
- Specified by:
attach
in interfaceAttachable
-
detach
- Specified by:
detach
in interfaceAttachable
-
addHeader
-
addHeader
-
add
-
addBody
-
addBody
-
add
-
appendToBody
-
appendTo
-
animationDuration
-
autoWidth
-
closable
-
closable
-
distance
-
flip
-
icon
- Specified by:
icon
in interfaceWithIcon<HTMLDivElement,
Popover>
-
removeIcon
- Specified by:
removeIcon
in interfaceWithIcon<HTMLDivElement,
Popover>
-
noClose
-
placement
-
severity
-
severity
-
trigger
-
trigger
-
trigger
-
trigger
-
triggerActions
-
zIndex
-
that
- Specified by:
that
in interfaceTypedBuilder<HTMLDivElement,
Popover>
-
ariaLabel
Accessible label for the popover, required when header is not present. -
ariaCloseLabel
Accessible label for the close button. -
onClose
- Specified by:
onClose
in interfaceCloseable<HTMLDivElement,
Popover>
-
show
public void show() -
show
-
close
- Specified by:
close
in interfaceCloseable<HTMLDivElement,
Popover>
-