| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Miso.UI.Dialog
Synopsis
- data DialogProps action = DialogProps {
- dialogId :: MisoString
- dialogClasses :: [MisoString]
- dialogAttrs :: [Attribute action]
- defaultDialogProps :: DialogProps action
- dialog_ :: DialogProps action -> [View model action] -> View model action
- dialogHeader_ :: MisoString -> [View model action] -> [View model action] -> View model action
- dialogSection_ :: [Attribute action] -> [View model action] -> View model action
- dialogFooter_ :: [Attribute action] -> [View model action] -> View model action
- dialogCloseButton_ :: action -> View model action
- dialogComponent :: Component parent props MisoString Action
- dialogCodeSample :: View model action
- dialogPropsApi :: View model action
Props
data DialogProps action Source #
Props for dialog_ (the native dialog element)
Constructors
| DialogProps | |
Fields
| |
defaultDialogProps :: DialogProps action Source #
Smart constructor
Views
dialog_ :: DialogProps action -> [View model action] -> View model action Source #
Dialog, driven by DialogProps.
Children typically include dialogHeader_, dialogSection_, dialogFooter_
and a dialogCloseButton_.
Arguments
| :: MisoString | dialog id (matches |
| -> [View model action] | title |
| -> [View model action] | description |
| -> View model action |
Header with title and description (ids derived from the dialog id)
dialogCloseButton_ :: action -> View model action Source #
The x-shaped close button in the dialog's corner
Component
dialogComponent :: Component parent props MisoString Action Source #
Demo component: two dialogs with triggers. The model tracks the id of the currently open dialog.
Samples
dialogCodeSample :: View model action Source #
dialogPropsApi :: View model action Source #