Class Masthead
java.lang.Object
org.patternfly.component.BaseComponent<HTMLElement, Masthead>
org.patternfly.component.page.Masthead
- All Implemented Interfaces:
ElementAttributeMethods<HTMLElement, Masthead>, ElementClassListMethods<HTMLElement, Masthead>, ElementConsumerMethods<HTMLElement, Masthead>, ElementContainerMethods<HTMLElement, Masthead>, ElementEventMethods<HTMLElement, Masthead>, ElementIdMethods<HTMLElement, Masthead>, ElementQueryMethods<HTMLElement>, HTMLElementAttributeMethods<HTMLElement, Masthead>, HTMLElementDataMethods<HTMLElement, Masthead>, HTMLElementStyleMethods<HTMLElement, Masthead>, HTMLElementVisibilityMethods<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()
.addMain(mastheadMain()
.addToggle(mastheadToggle())
.addBrand(mastheadBrand()
.addLogo(mastheadLogo("/"))))
.addContent(mastheadContent()
.addToolbar(toolbar()));
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddContent(MastheadContent content) Adds aMastheadContentto this component.addMain(MastheadMain main) Same 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 BaseComponent
componentType, element, registerComponentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface ElementConsumerMethods
apply, runMethods inherited from interface ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface ElementEventMethods
on, on, onMethods inherited from interface ElementIdMethods
id, uniqueIdMethods inherited from interface ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface HTMLElementAttributeMethods
titleMethods inherited from interface HTMLElementDataMethods
data, dataMethods inherited from interface HTMLElementVisibilityMethods
hidden
-
Method Details
-
masthead
Factory method to create a new instance of this component. -
addMain
-
addContent
Adds aMastheadContentto this component. -
display
-
display
Display type at various breakpoints. Defaults totuples(md, inline). -
inset
-
inset
Insets at various breakpoints -
that
-