| Copyright | (c) 2018 Francisco Vallarino |
|---|---|
| License | BSD-3-Clause (see the LICENSE file) |
| Maintainer | fjvallarino@gmail.com |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
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
- confirm :: (WidgetModel sp, WidgetEvent ep) => ep -> ep -> WidgetNode () (ConfirmEvt ep) -> WidgetNode sp ep
- confirm_ :: (WidgetModel sp, WidgetEvent ep) => ep -> ep -> [ConfirmCfg] -> WidgetNode () (ConfirmEvt ep) -> WidgetNode sp ep
- confirmMsg :: (WidgetModel sp, WidgetEvent ep) => Text -> ep -> ep -> WidgetNode sp ep
- confirmMsg_ :: (WidgetModel sp, WidgetEvent ep) => Text -> ep -> ep -> [ConfirmCfg] -> WidgetNode sp ep
Documentation
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.
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.
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.
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.