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.
masthead()
.addToggle(mastheadToggle())
.addMain(mastheadMain()
.addBrand(mastheadBrand(a("/"))
.addBrand(brand("/logo.svg", "Logo"))))
.addContent(mastheadContent()
.addToolbar(toolbar()));
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddContent
(MastheadContent content) Adds aMastheadContent
to 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 Masthead
masthead()
Factory method to create a new instance of this component.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
-
Method Details
-
masthead
Factory method to create a new instance of this component. -
addToggle
-
addMain
-
addContent
Adds aMastheadContent
to 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
-