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

public class Masthead extends BaseComponent<HTMLElement, Masthead>
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 Details

    • masthead

      public static Masthead masthead()
      Factory method to create a new instance of this component.
    • addMain

      public Masthead addMain(MastheadMain main)
    • addContent

      public Masthead addContent(MastheadContent content)
      Adds a MastheadContent to this component.
    • display

      public Masthead display(Display displayModifiers)
      Same as display(breakpoints(default_, displayModifiers))
    • display

      public Masthead display(Breakpoints<Display> displayModifiers)
      Display type at various breakpoints. Defaults to tuples(md, inline).
    • inset

      public Masthead inset(Inset insetModifiers)
      Same as inset(breakpoints(default_, insetModifiers))
    • inset

      public Masthead inset(Breakpoints<Inset> insetModifiers)
      Insets at various breakpoints
    • that

      public Masthead that()