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.
-
-
Method Summary
-
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, id, innerHtml, 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 Detail
-
menuToggle
public static MenuToggle menuToggle()
-
menuToggle
public static MenuToggle menuToggle(String text)
-
menuToggle
public static MenuToggle menuToggle(PredefinedIcon icon)
-
menuToggle
public static MenuToggle menuToggle(PredefinedIcon icon, String label)
-
menuToggle
public static MenuToggle menuToggle(Element icon)
-
menuToggle
public static MenuToggle menuToggle(Element icon, String label)
-
menuToggle
public static MenuToggle menuToggle(MenuToggleType type)
-
addAvatar
public MenuToggle addAvatar(Avatar avatar)
-
add
public MenuToggle add(Avatar avatar)
-
addBadge
public MenuToggle addBadge(Badge badge)
-
add
public MenuToggle add(Badge badge)
-
addAction
public MenuToggle addAction(MenuToggleAction action)
-
add
public MenuToggle add(MenuToggleAction action)
-
addCheckbox
public MenuToggle addCheckbox(MenuToggleCheckbox checkbox)
-
add
public MenuToggle add(MenuToggleCheckbox checkbox)
-
disabled
public MenuToggle disabled(boolean disabled)
- Specified by:
disabledin interfaceModifiers.Disabled<HTMLElement,MenuToggle>
-
icon
public MenuToggle icon(Element icon)
- Specified by:
iconin interfaceWithIcon<HTMLElement,MenuToggle>
-
removeIcon
public MenuToggle removeIcon()
- Specified by:
removeIconin interfaceWithIcon<HTMLElement,MenuToggle>
-
primary
public MenuToggle primary()
-
text
public MenuToggle text(String text)
- Specified by:
textin interfaceWithText<HTMLElement,MenuToggle>
-
iconAndText
public MenuToggle iconAndText(Element icon, String text, IconPosition iconPosition)
- Specified by:
iconAndTextin interfaceWithIconAndText<HTMLElement,MenuToggle>
-
that
public MenuToggle that()
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,MenuToggle>
-
ariaLabel
public MenuToggle ariaLabel(String label)
-
-