Class PopperBuilder
java.lang.Object
org.patternfly.popper.PopperBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionPopperBuilder(String componentName, HTMLElement triggerElement, HTMLElement popperElement) -
Method Summary
Modifier and TypeMethodDescriptionaddModifier(Modifier... modifiers) animationDuration(int animationDuration) build()entryDelay(int entryDelay) exitDelay(int exitDelay) registerHandler(HTMLElement triggerElement, Set<TriggerAction> triggerActions, Consumer<Event> show, Consumer<Event> hide) registerHandler(Set<TriggerAction> triggerActions, Consumer<Event> show, Consumer<Event> hide) Configures the predicate to determine if the popper should stay open in response to specific events.zIndex(int zIndex)
-
Constructor Details
-
PopperBuilder
-
-
Method Details
-
animationDuration
-
entryDelay
-
exitDelay
-
zIndex
-
placement
-
addModifier
-
registerHandler
public PopperBuilder registerHandler(Set<TriggerAction> triggerActions, Consumer<Event> show, Consumer<Event> hide) -
registerHandler
public PopperBuilder registerHandler(HTMLElement triggerElement, Set<TriggerAction> triggerActions, Consumer<Event> show, Consumer<Event> hide) -
removePopperOnTriggerDetach
-
stayOpen
Configures the predicate to determine if the popper should stay open in response to specific events.- Parameters:
stayOpen- a predicate that evaluates anEventand returnstrueif the popper should remain open, orfalseotherwise.- Returns:
- the
PopperBuilderinstance for method chaining.
-
build
-