A reusable dialog or modal window with a customizable interface and functionality.

A dialog should popup either in response to user action or to get the users attention.

  • Body of dialog; typically text.

icon - A zeta-icon element. Size will be restricted based on dialog type.

confirm - Button used in footer. Must be of type zeta-button.

cancel - Button used in footer. Must be of type zeta-button.

other - Button used in footer. Must be of type zeta-button.

body - Styles the dialog body

footer - Styles the dialog footer

header - Styles the dialog header

Hierarchy

  • ContourableInterface<this> & LitElement<this> & PopupInterface<this>
    • ZetaDialog

Other

cancelBtn: NodeList

Action button 2 (Cancel).

centered: boolean = false

Whether header text should be centered.

confirmBtn: NodeList

Action button 1 (Confirm).

hide: (returnValue?: string) => Promise<void>
icon: NodeList
initialOpen: boolean = false

Whether the modal is initially open.

onBarrierClicked: (e: Event) => void
open: boolean
otherBtn: NodeList

Action button 3 (Learn more/Other).

returnValue: string
rounded: boolean
show: () => Promise<void>
showModal: () => Promise<void>
size: "small" | "large" = "small"
shadowRootOptions: { delegatesFocus: boolean } = ...
styles: CSSResultGroup[] = ...

rendering

  • Invoked on each update to perform rendering tasks. This method may return any value renderable by lit-html's ChildPart - typically a TemplateResult. Setting properties inside this method will not trigger the element to update.

    Returns TemplateResult<1>