Package org.patternfly.component.sidebar
Class Sidebar
- java.lang.Object
-
- org.patternfly.component.BaseComponent<HTMLElement,Sidebar>
-
- org.patternfly.component.sidebar.Sidebar
-
- All Implemented Interfaces:
Container<HTMLElement,Sidebar>,Finder<HTMLElement>,HasElement<HTMLElement,Sidebar>,HasHTMLElement<HTMLElement,Sidebar>,IsElement<HTMLElement>,TypedBuilder<HTMLElement,Sidebar>,Component
public class Sidebar extends BaseComponent<HTMLElement,Sidebar>
Container for the page sidebar.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SidebaraddBody(SidebarBody body)Adds aSidebarBodyto this component.Sidebarcollapsed()Modifies the sidebar for the collapsed state.Sidebarexpanded()Modifies the sidebar for the expanded state.Sidebarlight()Modifies the sidebar to have a light theme.static Sidebarsidebar()Factory method to create a new instance of this component.Sidebarthat()voidtoggle()Toggles the collapse/expanded state of the sidebar.-
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, addAll, addAll, addAll, addAll, addAll
-
-
-
-
Method Detail
-
sidebar
public static Sidebar sidebar()
Factory method to create a new instance of this component.
-
addBody
public Sidebar addBody(SidebarBody body)
Adds aSidebarBodyto this component.
-
expanded
public Sidebar expanded()
Modifies the sidebar for the expanded state.
-
collapsed
public Sidebar collapsed()
Modifies the sidebar for the collapsed state.
-
light
public Sidebar light()
Modifies the sidebar to have a light theme. Note: for use with a light themedNavigationcomponent.
-
that
public Sidebar that()
-
toggle
public void toggle()
Toggles the collapse/expanded state of the sidebar.
-
-