Class Page
- All Implemented Interfaces:
Attachable, ElementAttributeMethods<HTMLDivElement, Page>, ElementClassListMethods<HTMLDivElement, Page>, ElementConsumerMethods<HTMLDivElement, Page>, ElementContainerMethods<HTMLDivElement, Page>, ElementEventMethods<HTMLDivElement, Page>, ElementIdMethods<HTMLDivElement, Page>, ElementQueryMethods<HTMLDivElement>, HTMLElementAttributeMethods<HTMLDivElement, Page>, HTMLElementDataMethods<HTMLDivElement, Page>, HTMLElementStyleMethods<HTMLDivElement, Page>, HTMLElementVisibilityMethods<HTMLDivElement, Page>, IsElement<HTMLDivElement>, TypedBuilder<HTMLDivElement, Page>, Component
The page component is used to define the basic layout of a page with either vertical or horizontal navigation.
page()
.addSkipToContent(skipToContent("main-id"))
.addMasthead(masthead())
.addSidebar(pageSidebar())
.addMain(pageMain("main-id"));
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionadd(NotificationDrawer notificationDrawer) Adds theMastheadcomponent and removes the previous one (if any).Adds thePageMaincomponent and removes the previous one (if any).add(PageSidebar sidebar) Adds thePageSidebarcomponent and removes the previous one (if any).add(SkipToContent skipToContent) Adds theSkipToContentcomponent as the first element and removes the previous one (if any).Adds thePageMaincomponent and removes the previous one (if any).addMasthead(Masthead masthead) Adds theMastheadcomponent and removes the previous one (if any).addNotificationDrawer(NotificationDrawer notificationDrawer) addSidebar(PageSidebar sidebar) Adds thePageSidebarcomponent and removes the previous one (if any).addSkipToContent(SkipToContent skipToContent) Adds theSkipToContentcomponent as the first element and removes the previous one (if any).voidattach(MutationRecord mutationRecord) breakpoint(Function<Integer, Breakpoint> breakpointFn) The page resize observer uses the breakpoints returned from this function when adding thepf-m-breakpoint-[default|sm|md|lg|xl|2xl]class.voiddetach(MutationRecord mutationRecord) drawer()Returns theDrawerthat contains the currentNotificationDrawerornullif no notification drawer has been defined yet.main()Returns the currentPageMainornullif no main has been defined yet.masthead()Returns the currentMastheadornullif no masthead has been defined yet.Returns the currentNotificationDrawerornullif no notification drawer has been defined yet.onResize(ResizeHandler<Page> resizeHandler) static Pagepage()Create or returns the page singleton.static Pagepage(boolean newInstance) sidebar()Returns the currentPageSidebarornullif no sidebar has been defined yet.that()verticalBreakpoint(Function<Integer, Breakpoint> verticalBreakpointFn) The page resize observer uses the breakpoints returned from this function when adding thepf-m-height-breakpoint-[default|sm|md|lg|xl|2xl]class.voidwire(NotificationBadge notificationBadge, NotificationDrawer notificationDrawer) 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
-
page
Create or returns the page singleton. -
page
-
attach
- Specified by:
attachin interfaceAttachable
-
detach
- Specified by:
detachin interfaceAttachable
-
addSkipToContent
Adds theSkipToContentcomponent as the first element and removes the previous one (if any). -
add
Adds theSkipToContentcomponent as the first element and removes the previous one (if any). -
addMasthead
-
add
-
addSidebar
Adds thePageSidebarcomponent and removes the previous one (if any). -
add
Adds thePageSidebarcomponent and removes the previous one (if any). -
addMain
-
add
-
addNotificationDrawer
-
add
-
breakpoint
The page resize observer uses the breakpoints returned from this function when adding thepf-m-breakpoint-[default|sm|md|lg|xl|2xl]class. You can override the default functionBreakpoint.breakpoint(int)to return breakpoints at different sizes than the default. -
noSidebar
-
verticalBreakpoint
The page resize observer uses the breakpoints returned from this function when adding thepf-m-height-breakpoint-[default|sm|md|lg|xl|2xl]class. You can override the default functionBreakpoint.verticalBreakpoint(int)to return breakpoints at different sizes than the default. -
that
- Specified by:
thatin interfaceTypedBuilder<HTMLDivElement, Page>
-
onResize
-
wire
-
masthead
-
sidebar
Returns the currentPageSidebarornullif no sidebar has been defined yet. -
main
-
drawer
Returns theDrawerthat contains the currentNotificationDrawerornullif no notification drawer has been defined yet. -
notificationDrawer
Returns the currentNotificationDrawerornullif no notification drawer has been defined yet.
-