monomer-1.0.0.0: A GUI library for writing native Haskell applications.
Copyright(c) 2018 Francisco Vallarino
LicenseBSD-3-Clause (see the LICENSE file)
Maintainerfjvallarino@gmail.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Monomer.Widgets.Containers.Alert

Description

Simple alert dialog, displaying a close button and optional title. Usually embedded in a zstack component and displayed/hidden depending on context.

Config:

  • titleCaption: the title of the alert dialog.
  • closeCaption: the caption of the close button.
Synopsis

Documentation

alert Source #

Arguments

:: (WidgetModel sp, WidgetEvent ep) 
=> ep

The event to raise when the dialog is closed.

-> WidgetNode () ep

The content to display in the dialog.

-> WidgetNode sp ep

The created dialog.

Creates an alert dialog with the provided content.

alert_ Source #

Arguments

:: (WidgetModel sp, WidgetEvent ep) 
=> ep

The event to raise when the dialog is closed.

-> [AlertCfg]

The config options for the dialog.

-> WidgetNode () ep

The content to display in the dialog.

-> WidgetNode sp ep

The created dialog.

Creates an alert dialog with the provided content. Accepts config.

alertMsg Source #

Arguments

:: (WidgetModel sp, WidgetEvent ep) 
=> Text

The message to display.

-> ep

The event to raise when the dialog is closed.

-> WidgetNode sp ep

The created dialog.

Creates an alert dialog with a text message as content.

alertMsg_ Source #

Arguments

:: (WidgetModel sp, WidgetEvent ep) 
=> Text

The message to display.

-> ep

The event to raise when the dialog is closed.

-> [AlertCfg]

The config options for the dialog.

-> WidgetNode sp ep

The created dialog.

Creates an alert dialog with a text message as content. Accepts config.