monomer-1.3.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.Confirm

Description

Simple confirm dialog, displaying an accept and close buttons and optional title. Usually embedded in a zstack component and displayed/hidden depending on context.

Synopsis

Configuration

data ConfirmCfg Source #

Configuration options for confirm:

Constructors

confirm Source #

Arguments

:: (WidgetModel s, WidgetEvent e) 
=> e

The accept button event.

-> e

The cancel button event.

-> WidgetNode () (ConfirmEvt e)

The content to display in the dialog.

-> WidgetNode s e

The created dialog.

Creates a confirm dialog with the provided content.

confirm_ Source #

Arguments

:: (WidgetModel s, WidgetEvent e) 
=> e

The accept button event.

-> e

The cancel button event.

-> [ConfirmCfg]

The config options for the dialog.

-> WidgetNode () (ConfirmEvt e)

The content to display in the dialog.

-> WidgetNode s e

The created dialog.

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

confirmMsg Source #

Arguments

:: (WidgetModel s, WidgetEvent e) 
=> Text

The message to display in the dialog.

-> e

The accept button event.

-> e

The cancel button event.

-> WidgetNode s e

The created dialog.

Creates an alert dialog with a text message as content.

confirmMsg_ Source #

Arguments

:: (WidgetModel s, WidgetEvent e) 
=> Text

The message to display in the dialog.

-> e

The accept button event.

-> e

The cancel button event.

-> [ConfirmCfg]

The config options for the dialog.

-> WidgetNode s e

The created dialog.

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