Package org.patternfly.component.menu
Class MenuToggle
java.lang.Object
org.patternfly.component.BaseComponent<HTMLElement,MenuToggle>
org.patternfly.component.menu.MenuToggle
- All Implemented Interfaces:
Container<HTMLElement,
,MenuToggle> Finder<HTMLElement>
,HasElement<HTMLElement,
,MenuToggle> HasHTMLElement<HTMLElement,
,MenuToggle> IsElement<HTMLElement>
,TypedBuilder<HTMLElement,
,MenuToggle> Component
,WithIcon<HTMLElement,
,MenuToggle> WithIconAndText<HTMLElement,
,MenuToggle> WithText<HTMLElement,
,MenuToggle> Modifiers.Disabled<HTMLElement,
,MenuToggle> Modifiers.Secondary<HTMLElement,
MenuToggle>
public class MenuToggle
extends BaseComponent<HTMLElement,MenuToggle>
implements Modifiers.Secondary<HTMLElement,MenuToggle>, WithIcon<HTMLElement,MenuToggle>, WithText<HTMLElement,MenuToggle>, WithIconAndText<HTMLElement,MenuToggle>, Modifiers.Disabled<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
(MenuToggleCheckbox checkbox) addAction
(MenuToggleAction action) addCheckbox
(MenuToggleCheckbox checkbox) disabled
(boolean disabled) iconAndText
(Element icon, String text, IconPosition iconPosition) static MenuToggle
static MenuToggle
menuToggle
(Element icon) static MenuToggle
menuToggle
(Element icon, String label) static MenuToggle
menuToggle
(String text) static MenuToggle
menuToggle
(MenuToggleType type) static MenuToggle
menuToggle
(PredefinedIcon icon) static MenuToggle
menuToggle
(PredefinedIcon icon, String label) primary()
text()
that()
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.Disabled
disabled, isDisabled
Methods inherited from interface org.patternfly.style.Modifiers.Secondary
secondary, secondary
Methods inherited from interface org.patternfly.component.WithIconAndText
iconAndText, iconAndText
-
Method Details
-
addAvatar
-
add
-
addBadge
-
add
-
disabled
- Specified by:
disabled
in interfaceModifiers.Disabled<HTMLElement,
MenuToggle>
-
icon
- Specified by:
icon
in interfaceWithIcon<HTMLElement,
MenuToggle>
-
removeIcon
- Specified by:
removeIcon
in interfaceWithIcon<HTMLElement,
MenuToggle>
-
-
text
- Specified by:
text
in interfaceWithText<HTMLElement,
MenuToggle>
-
iconAndText
- Specified by:
iconAndText
in interfaceWithIconAndText<HTMLElement,
MenuToggle>
-
that
- Specified by:
that
in interfaceTypedBuilder<HTMLElement,
MenuToggle>
-
ariaLabel
-
text
- Specified by:
text
in interfaceWithText<HTMLElement,
MenuToggle>