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>, Modifiers.Disabled<HTMLElement, MenuToggle>, Modifiers.FullHeight<HTMLElement, MenuToggle>, Modifiers.FullWidth<HTMLElement, MenuToggle>, Modifiers.Primary<HTMLElement, MenuToggle>, Modifiers.Secondary<HTMLElement, MenuToggle>
public class MenuToggle
extends BaseComponent<HTMLElement, MenuToggle>
implements ComponentIcon<HTMLElement, MenuToggle>, ComponentIconAndText<HTMLElement, MenuToggle>, Modifiers.Disabled<HTMLElement, MenuToggle>, ElementTextMethods<HTMLElement, MenuToggle>, Modifiers.FullHeight<HTMLElement, MenuToggle>, Modifiers.FullWidth<HTMLElement, MenuToggle>, Modifiers.Primary<HTMLElement, MenuToggle>, Modifiers.Secondary<HTMLElement, MenuToggle>
The menu toggle component pairs with the menu OR the panel component to create a 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 TypeMethodDescriptionAdds a checkbox to the menu toggle and ensures the necessary internal wiring.add(MenuToggleAction action) add(BaseFilterInput<?> filterInput) add(BaseSearchInput<?> searchInput) addAction(MenuToggleAction action) addCheckbox(Checkbox checkbox) Adds a checkbox to the menu toggle and ensures the necessary internal wiring.addFilterInput(BaseFilterInput<?> filterInput) addSearchInput(BaseSearchInput<?> searchInput) badge()checkbox()disabled(boolean disabled) Adds/removes modifier(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 <T extends BaseFilterInput<T>>
MenuTogglemenuToggle(BaseFilterInput<T> filterInput) static <T extends BaseSearchInput<T>>
MenuTogglemenuToggle(BaseSearchInput<T> searchInput) static MenuTogglemenuToggle(PredefinedIcon icon) static MenuTogglemenuToggle(PredefinedIcon icon, String label) placeholder(boolean placeholder) voidsmall()text()that()validated(ValidationStatus status) 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 ComponentIconAndText
iconAndText, iconAndTextMethods 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.Disabled
disabled, isDisabledMethods inherited from interface Modifiers.FullHeight
fullHeight, fullHeightMethods inherited from interface Modifiers.FullWidth
fullWidth, fullWidthMethods inherited from interface Modifiers.Primary
primary, primaryMethods inherited from interface Modifiers.Secondary
secondary, secondary
-
Method Details
-
addAvatar
-
add
-
addBadge
-
add
-
addCheckbox
Adds a checkbox to the menu toggle and ensures the necessary internal wiring. Please make sure that the checkbox is a wrapped checkbox created withCheckbox.checkboxWrapped(String, String).- Parameters:
checkbox- theCheckboxcomponent to be added to the menu toggle- Returns:
- the updated
MenuToggleinstance with the checkbox added
-
add
Adds a checkbox to the menu toggle and ensures the necessary internal wiring. Please make sure that the checkbox is a * wrapped checkbox created withCheckbox.checkboxWrapped(String, String).- Parameters:
checkbox- theCheckboxcomponent to be added to the menu toggle- Returns:
- the updated
MenuToggleinstance
-
addSearchInput
-
add
-
addFilterInput
-
add
-
disabled
Description copied from interface:Modifiers.DisabledAdds/removes modifier(disabled)- Specified by:
disabledin interfaceModifiers.Disabled<HTMLElement, MenuToggle>
-
icon
- Specified by:
iconin interfaceComponentIcon<HTMLElement, MenuToggle>
-
removeIcon
- Specified by:
removeIconin interfaceComponentIcon<HTMLElement, MenuToggle>
-
placeholder
-
placeholder
-
text
- Specified by:
textin interfaceElementTextMethods<HTMLElement, MenuToggle>
-
iconAndText
- Specified by:
iconAndTextin interfaceComponentIconAndText<HTMLElement, MenuToggle>
-
small
-
validated
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement, MenuToggle>
-
ariaLabel
-
resetValidation
public void resetValidation() -
text
- Specified by:
textin interfaceElementTextMethods<HTMLElement, MenuToggle>
-
searchInput
-
filterInput
-
badge
-
checkbox