miso-ui
Safe HaskellNone
LanguageHaskell2010

Miso.UI.Dialog

Synopsis

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

dialogHeader_ Source #

Arguments

:: MisoString

dialog id (matches dialogId)

-> [View model action]

title

-> [View model action]

description

-> View model action 

Header with title and description (ids derived from the dialog id)

dialogSection_ :: [Attribute action] -> [View model action] -> View model action Source #

dialogFooter_ :: [Attribute action] -> [View model action] -> View model action Source #

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 #