lenards/elm-ui-patternfly/2.1.0

NOTE: the latest version is 4.0.2

PF6.Backdrop

PF6 Backdrop component

A semi-transparent overlay background used behind modals and other overlays.

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

Definition

type Backdrop msg

Opaque Backdrop type

Constructor

backdrop : msg -> Backdrop msg

Construct a Backdrop

backdrop BackdropClicked

The msg fires when the backdrop is clicked.

Modifiers

withOpacity : Float -> Backdrop msg -> Backdrop msg

Set the backdrop opacity (0.0 to 1.0, default 0.5)

withZIndex : Int -> Backdrop msg -> Backdrop msg

Set the z-index (default 1000)

Rendering

toMarkup : Backdrop msg -> Element msg

Render the Backdrop as an Element msg

The backdrop covers the entire viewport using fixed positioning. Consumers control visibility by conditionally rendering the backdrop.