| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Miso.UI.Toast
Synopsis
- data ToastProps = ToastProps {}
- defaultToastProps :: ToastProps
- toastTrigger_ :: (ToastProps -> action) -> ToastProps -> [View model action] -> View model action
- toaster_ :: [Attribute action] -> View model action
- toastSample :: (ToastProps -> action) -> View model action
- toastCodeSample :: View model action
- toastPropsApi :: View model action
Props
data ToastProps Source #
Props describing a basecoat toast. Dispatched to basecoat's toaster JS
(a basecoat:toast custom event) by the application's update function.
Constructors
| ToastProps | |
Fields
| |
Instances
| Show ToastProps Source # | |
Defined in Miso.UI.Toast Methods showsPrec :: Int -> ToastProps -> ShowS # show :: ToastProps -> String # showList :: [ToastProps] -> ShowS # | |
| Eq ToastProps Source # | |
Defined in Miso.UI.Toast | |
defaultToastProps :: ToastProps Source #
Smart constructor: informational toast
Views
toastTrigger_ :: (ToastProps -> action) -> ToastProps -> [View model action] -> View model action Source #
Button that raises a toast; the application maps ToastProps into its
own action (which should dispatch the basecoat:toast event)
toaster_ :: [Attribute action] -> View model action Source #
The toaster container basecoat renders toasts into; place once per page
Samples
toastSample :: (ToastProps -> action) -> View model action Source #
toastCodeSample :: View model action Source #
toastPropsApi :: View model action Source #