lenards/elm-ui-patternfly/4.0.2

PF6.Page

PF6 Page component

The Page component is used to define the basic layout of a page with either vertical or horizontal navigation.

See: https://www.patternfly.org/components/page

Definition

type Page msg

Opaque Page type

Constructor

page : Element msg -> Page msg

Construct a Page with main content

Layout modifiers

withMasthead : Element msg -> Page msg -> Page msg

Set the masthead (top header bar)

withSidebar : Element msg -> Page msg -> Page msg

Set the sidebar (left navigation panel)

withBreadcrumb : Element msg -> Page msg -> Page msg

Set a breadcrumb above the main content

withNotificationDrawer : Element msg -> Page msg -> Page msg

Set a notification drawer (right panel)

Dimension modifiers

withSidebarWidth : Int -> Page msg -> Page msg

Set sidebar width in pixels (default: 270)

Rendering

toMarkup : Theme -> Page msg -> Element msg

Render the Page as an Element msg