Package org.patternfly.component.page
Class 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.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 type at various breakpoints.inset(org.patternfly.style.Breakpoints<org.patternfly.style.Inset> insetModifiers) Insets at various breakpointsinset(org.patternfly.style.Inset insetModifiers) Same 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.ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface org.jboss.elemento.ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface org.jboss.elemento.ElementConsumerMethods
apply, runMethods inherited from interface org.jboss.elemento.ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface org.jboss.elemento.ElementEventMethods
on, on, onMethods inherited from interface org.jboss.elemento.ElementIdMethods
id, uniqueIdMethods inherited from interface org.jboss.elemento.ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface org.jboss.elemento.HTMLElementAttributeMethods
titleMethods inherited from interface org.jboss.elemento.HTMLElementDataMethods
dataMethods inherited from interface org.jboss.elemento.HTMLElementStyleMethods
style, style, style, style, style, styleMethods inherited from interface org.jboss.elemento.HTMLElementVisibilityMethods
hidden
-
Method Details
-
masthead
Factory method to create a new instance of this component. -
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 -
that
-