Package org.patternfly.component.page
Class Masthead
- All Implemented Interfaces:
Container<HTMLElement,,Masthead> Finder<HTMLElement>,HasElement<HTMLElement,,Masthead> HasHTMLElement<HTMLElement,,Masthead> IsElement<HTMLElement>,TypedBuilder<HTMLElement,,Masthead> Component
A masthead contains global properties such as logotype, navigation and settings in an organized fashion, and it is accessible
from all parts of the application.
All pages should share a common masthead. Use Page.masthead() to get the masthead.
-
Method Summary
Modifier and TypeMethodDescriptionaddContent(MastheadContent content) Adds aMastheadContentto this component.addMain(MastheadMain main) addToggle(MastheadToggle toggle) background(Brightness brightness) Background theme color of the mastheadSame asdisplay(breakpoints(default_, displayModifiers))display(Breakpoints<Display> displayModifiers) Display type at various breakpoints.inset(Breakpoints<Inset> insetModifiers) Insets at various breakpointsSame asinset(breakpoints(default_, insetModifiers))static Mastheadmasthead()Factory method to create a new instance of this component.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, addAll
-
Method Details
-
masthead
Factory method to create a new instance of this component. -
addToggle
-
addMain
-
addContent
Adds aMastheadContentto this component. -
display
Same asdisplay(breakpoints(default_, displayModifiers)) -
display
Display type at various breakpoints. Defaults totuples(md, inline). -
inset
Same asinset(breakpoints(default_, insetModifiers)) -
inset
Insets at various breakpoints -
background
Background theme color of the masthead -
that
-