Class MenuToggleMenu<B extends TypedBuilder<HTMLElement, B>>
java.lang.Object
org.patternfly.component.ComponentDelegate<HTMLElement, B>
org.patternfly.component.menu.MenuToggleMenu<B>
- All Implemented Interfaces:
Attachable,ElementAttributeMethods<HTMLElement, B>,ElementClassListMethods<HTMLElement, B>,ElementConsumerMethods<HTMLElement, B>,ElementContainerMethods<HTMLElement, B>,ElementEventMethods<HTMLElement, B>,ElementIdMethods<HTMLElement, B>,ElementQueryMethods<HTMLElement>,HTMLElementAttributeMethods<HTMLElement, B>,HTMLElementDataMethods<HTMLElement, B>,HTMLElementStyleMethods<HTMLElement, B>,HTMLElementVisibilityMethods<HTMLElement, B>,IsElement<HTMLElement>,TypedBuilder<HTMLElement, B>,Component,Expandable<HTMLElement, B>,Modifiers.Disabled<HTMLElement, B>
- Direct Known Subclasses:
Dropdown,MultiSelect,MultiTypeahead,SingleSelect,SingleTypeahead
public abstract class MenuToggleMenu<B extends TypedBuilder<HTMLElement, B>>
extends ComponentDelegate<HTMLElement, B>
implements Modifiers.Disabled<HTMLElement, B>, Expandable<HTMLElement, B>, Attachable
Abstract base component for components that combine a
MenuToggle and a Menu, such as Dropdown,
SingleSelect, SingleTypeahead, or MultiSelect.
The component delegates to the MenuToggle component. The Menu is managed by a Popper instance.
-
Method Summary
Modifier and TypeMethodDescriptionapplyTo(Consumer<MenuToggle> consumer) Provides access to the underlying menu toggle using a fluent API stylevoidattach(MutationRecord mutationRecord) voidcollapse(boolean fireEvent) voiddetach(MutationRecord mutationRecord) disabled(boolean disabled) Adds/removes modifier(disabled)voidexpand(boolean fireEvent) flip(boolean flip) booleanmenu()onLoaded(ComponentHandler<B> loadedHandler) onToggle(ToggleHandler<B> toggleHandler) stayOpen()Specifies a condition that determines whether the menu should remain open when an event occurs.zIndex(int zIndex) Methods inherited from class org.patternfly.component.ComponentDelegate
componentType, elementMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.elemento.ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface org.jboss.elemento.ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface org.jboss.elemento.ElementConsumerMethods
apply, runMethods inherited from interface org.jboss.elemento.ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface org.jboss.elemento.ElementEventMethods
on, on, onMethods inherited from interface org.jboss.elemento.ElementIdMethods
id, uniqueIdMethods inherited from interface org.jboss.elemento.ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface org.patternfly.component.Expandable
collapse, expand, expanded, toggle, toggleMethods inherited from interface org.jboss.elemento.HTMLElementAttributeMethods
titleMethods inherited from interface org.jboss.elemento.HTMLElementDataMethods
dataMethods inherited from interface org.jboss.elemento.HTMLElementStyleMethods
style, style, style, style, style, styleMethods inherited from interface org.jboss.elemento.HTMLElementVisibilityMethods
hiddenMethods inherited from interface org.patternfly.style.Modifiers.Disabled
disabledMethods inherited from interface org.jboss.elemento.TypedBuilder
that
-
Method Details
-
attach
- Specified by:
attachin interfaceAttachable
-
detach
- Specified by:
detachin interfaceAttachable
-
applyTo
Provides access to the underlying menu toggle using a fluent API style -
disabled
Description copied from interface:Modifiers.DisabledAdds/removes modifier(disabled)- Specified by:
disabledin interfaceModifiers.Disabled<HTMLElement, B extends TypedBuilder<HTMLElement, B>>
-
isDisabled
public boolean isDisabled()- Specified by:
isDisabledin interfaceModifiers.Disabled<HTMLElement, B extends TypedBuilder<HTMLElement, B>>
-
flip
-
placement
-
stayOpen
-
stayOpen
Specifies a condition that determines whether the menu should remain open when an event occurs. -
zIndex
-
ariaLabel
-
onLoaded
-
onToggle
-
collapse
public void collapse(boolean fireEvent) - Specified by:
collapsein interfaceExpandable<HTMLElement, B extends TypedBuilder<HTMLElement, B>>
-
expand
public void expand(boolean fireEvent) - Specified by:
expandin interfaceExpandable<HTMLElement, B extends TypedBuilder<HTMLElement, B>>
-