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.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.

Config:

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

Documentation

confirm Source #

Arguments

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

The accept button event.

-> ep

The cancel button event.

-> WidgetNode () (ConfirmEvt ep)

The content to display in the dialog.

-> WidgetNode sp ep

The created dialog.

Creates a confirm dialog with the provided content.

confirm_ Source #

Arguments

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

The accept button event.

-> ep

The cancel button event.

-> [ConfirmCfg]

The config options for the dialog.

-> WidgetNode () (ConfirmEvt ep)

The content to display in the dialog.

-> WidgetNode sp ep

The created dialog.

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

confirmMsg Source #

Arguments

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

The message to display in the dialog.

-> ep

The accept button event.

-> ep

The cancel button event.

-> WidgetNode sp ep

The created dialog.

Creates an alert dialog with a text message as content.

confirmMsg_ Source #

Arguments

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

The message to display in the dialog.

-> ep

The accept button event.

-> ep

The cancel button event.

-> [ConfirmCfg]

The config options for the dialog.

-> WidgetNode sp ep

The created dialog.

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