Package org.patternfly.component.menu
Class MenuToggle
java.lang.Object
org.patternfly.component.BaseComponent<HTMLElement,MenuToggle>
org.patternfly.component.menu.MenuToggle
- All Implemented Interfaces:
ElementAttributeMethods<HTMLElement,,MenuToggle> ElementClassListMethods<HTMLElement,,MenuToggle> ElementConsumerMethods<HTMLElement,,MenuToggle> ElementContainerMethods<HTMLElement,,MenuToggle> ElementEventMethods<HTMLElement,,MenuToggle> ElementIdMethods<HTMLElement,,MenuToggle> ElementQueryMethods<HTMLElement>,ElementTextMethods<HTMLElement,,MenuToggle> HTMLElementAttributeMethods<HTMLElement,,MenuToggle> HTMLElementDataMethods<HTMLElement,,MenuToggle> HTMLElementStyleMethods<HTMLElement,,MenuToggle> HTMLElementVisibilityMethods<HTMLElement,,MenuToggle> IsElement<HTMLElement>,TypedBuilder<HTMLElement,,MenuToggle> Component,ComponentIcon<HTMLElement,,MenuToggle> ComponentIconAndText<HTMLElement,,MenuToggle> org.patternfly.style.Modifiers.Disabled<HTMLElement,,MenuToggle> org.patternfly.style.Modifiers.FullHeight<HTMLElement,,MenuToggle> org.patternfly.style.Modifiers.FullWidth<HTMLElement,,MenuToggle> org.patternfly.style.Modifiers.Primary<HTMLElement,,MenuToggle> org.patternfly.style.Modifiers.Secondary<HTMLElement,MenuToggle>
public class MenuToggle
extends BaseComponent<HTMLElement,MenuToggle>
implements ComponentIcon<HTMLElement,MenuToggle>, ComponentIconAndText<HTMLElement,MenuToggle>, org.patternfly.style.Modifiers.Disabled<HTMLElement,MenuToggle>, ElementTextMethods<HTMLElement,MenuToggle>, org.patternfly.style.Modifiers.FullHeight<HTMLElement,MenuToggle>, org.patternfly.style.Modifiers.FullWidth<HTMLElement,MenuToggle>, org.patternfly.style.Modifiers.Primary<HTMLElement,MenuToggle>, org.patternfly.style.Modifiers.Secondary<HTMLElement,MenuToggle>
The menu toggle component pairs with the menu OR the panel component to create more customizable dropdown and select
implementations. Using a menu toggle with a menu enables you to create custom component configurations not supported by the
standard dropdown or select components.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionadd(MenuToggleAction action) add(TextInputGroup textInputGroup) addAction(MenuToggleAction action) addCheckbox(Checkbox checkbox) addTextInputGroup(TextInputGroup textInputGroup) badge()voiddisabled(boolean disabled) iconAndText(Element icon, String text, IconPosition iconPosition) static MenuTogglestatic MenuTogglemenuToggle(Element icon) static MenuTogglemenuToggle(Element icon, String label) static MenuTogglemenuToggle(String text) static MenuTogglemenuToggle(MenuToggleType type) static MenuTogglemenuToggle(org.patternfly.icon.PredefinedIcon icon) static MenuTogglemenuToggle(org.patternfly.icon.PredefinedIcon icon, String label) placeholder(boolean placeholder) small()text()that()Methods inherited from class org.patternfly.component.BaseComponent
componentType, elementMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.patternfly.component.ComponentIcon
iconMethods inherited from interface org.patternfly.component.ComponentIconAndText
iconAndText, iconAndTextMethods 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.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
disabled, isDisabledMethods inherited from interface org.patternfly.style.Modifiers.FullHeight
fullHeight, fullHeightMethods inherited from interface org.patternfly.style.Modifiers.FullWidth
fullWidth, fullWidthMethods inherited from interface org.patternfly.style.Modifiers.Primary
primary, primaryMethods inherited from interface org.patternfly.style.Modifiers.Secondary
secondary, secondary
-
Method Details
-
addAvatar
-
add
-
addBadge
-
add
-
addCheckbox
-
add
-
addTextInputGroup
-
add
-
disabled
- Specified by:
disabledin interfaceorg.patternfly.style.Modifiers.Disabled<HTMLElement,MenuToggle>
-
icon
- Specified by:
iconin interfaceComponentIcon<HTMLElement,MenuToggle>
-
removeIcon
- Specified by:
removeIconin interfaceComponentIcon<HTMLElement,MenuToggle>
-
placeholder
-
placeholder
-
status
-
text
- Specified by:
textin interfaceElementTextMethods<HTMLElement,MenuToggle>
-
iconAndText
- Specified by:
iconAndTextin interfaceComponentIconAndText<HTMLElement,MenuToggle>
-
small
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,MenuToggle>
-
ariaLabel
-
clearStatus
public void clearStatus() -
text
- Specified by:
textin interfaceElementTextMethods<HTMLElement,MenuToggle>
-
textInputGroup
-
badge