Package org.patternfly.component.menu
Class MenuToggle
java.lang.Object
org.patternfly.component.BaseComponent<elemental2.dom.HTMLElement,MenuToggle>
org.patternfly.component.menu.MenuToggle
- All Implemented Interfaces:
Container<elemental2.dom.HTMLElement,,MenuToggle> Finder<elemental2.dom.HTMLElement>,HasElement<elemental2.dom.HTMLElement,,MenuToggle> HasHTMLElement<elemental2.dom.HTMLElement,,MenuToggle> IsElement<elemental2.dom.HTMLElement>,TypedBuilder<elemental2.dom.HTMLElement,,MenuToggle> Component,WithIcon<elemental2.dom.HTMLElement,,MenuToggle> WithIconAndText<elemental2.dom.HTMLElement,,MenuToggle> WithText<elemental2.dom.HTMLElement,,MenuToggle> Modifiers.Disabled<elemental2.dom.HTMLElement,,MenuToggle> Modifiers.Secondary<elemental2.dom.HTMLElement,MenuToggle>
public class MenuToggle
extends BaseComponent<elemental2.dom.HTMLElement,MenuToggle>
implements Modifiers.Secondary<elemental2.dom.HTMLElement,MenuToggle>, WithIcon<elemental2.dom.HTMLElement,MenuToggle>, WithText<elemental2.dom.HTMLElement,MenuToggle>, WithIconAndText<elemental2.dom.HTMLElement,MenuToggle>, Modifiers.Disabled<elemental2.dom.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:
-
- invalid input: '<a href= * "https://www.patternfly.org/components/menus/menu-toggle">https://www.patternfly.org/components/menus/menu-toggle</a>'
-
Method Summary
Modifier and TypeMethodDescriptionadd(MenuToggleAction action) add(MenuToggleCheckbox checkbox) addAction(MenuToggleAction action) addCheckbox(MenuToggleCheckbox checkbox) badge()disabled(boolean disabled) icon(elemental2.dom.Element icon) iconAndText(elemental2.dom.Element icon, String text, IconPosition iconPosition) static MenuTogglestatic MenuTogglemenuToggle(elemental2.dom.Element icon) static MenuTogglemenuToggle(elemental2.dom.Element icon, String label) static MenuTogglemenuToggle(String text) static MenuTogglemenuToggle(MenuToggleType type) static MenuTogglemenuToggle(PredefinedIcon icon) static MenuTogglemenuToggle(PredefinedIcon icon, String label) primary()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.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods 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, uniqueIdMethods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, style, style, style, style, style, titleMethods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled, isDisabledMethods inherited from interface org.patternfly.style.Modifiers.Secondary
secondary, secondaryMethods inherited from interface org.patternfly.component.WithIconAndText
iconAndText, iconAndText
-
Method Details
-
addAvatar
-
add
-
addBadge
-
add
-
disabled
- Specified by:
disabledin interfaceModifiers.Disabled<elemental2.dom.HTMLElement,MenuToggle>
-
icon
- Specified by:
iconin interfaceWithIcon<elemental2.dom.HTMLElement,MenuToggle>
-
removeIcon
- Specified by:
removeIconin interfaceWithIcon<elemental2.dom.HTMLElement,MenuToggle>
-
-
text
- Specified by:
textin interfaceWithText<elemental2.dom.HTMLElement,MenuToggle>
-
iconAndText
- Specified by:
iconAndTextin interfaceWithIconAndText<elemental2.dom.HTMLElement,MenuToggle>
-
that
- Specified by:
thatin interfaceTypedBuilder<elemental2.dom.HTMLElement,MenuToggle>
-
ariaLabel
-
text
- Specified by:
textin interfaceWithText<elemental2.dom.HTMLElement,MenuToggle>
-
badge